1. 先查看网络接口配置
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:30 errors:0 dropped:0 overruns:0 frame:0
TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1872 (1.8 Kb) TX bytes:1872 (1.8 Kb)
2.问题出现,只有本地环回口打开
发现只有本地换回口开着,eth0之类的网口没开。
好,有时该使用下暴力手段了。
#ifconfig eth0 up
eth0: unknown interface: 没有那个设备
。。。。。。居然提示没有设备,好吧,看看其他的网口
#ifconfig eth1 up
看看情况,总算起来了。
# ifconfig
eth1 Link encap:Ethernet HWaddr 00:0C:29:F6:2F:B1
inet6 addr: fe80::20c:29ff:fef6:2fb1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7038 (6.8 Kb) TX bytes:5801 (5.6 Kb)