错误/标准输出
/etc/init.d/networking restart * 重新配置网络接口... SIOCADDRT:文件存在 无法启动 eth0。 ...完毕。
netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 10.0.1.1 0.0.0.0 UG 0 0 0 eth0
ip route list
10.0.1.0/24 dev eth0 proto kernel scope link src 10.0.1.14 metric 1
default via 10.0.1.1 dev eth0 proto static
default via 10.0.1.1 dev eth0 metric 100
/etc/network# more interfaces
auto eth0 …
Run Code Online (Sandbox Code Playgroud)