分页: 1 / 1

/etc/init.d/networking restart 出错

发表于 : 2008-04-30 9:49
abcman
在一台机器上安装了ubuntu7.10,升级完成重启后不能连同局域网和上网,网络设置成dhcp,执行/etc/init.d/networking restart时出问题,显示
No DHCPOFFERS received.
No working leases in persistents database - sleeping
我另有一台神舟天运F231S也安装了ubuntu7.10,一样的设置,执行/etc/init.d/networking restart时正常,显示
DHCPACK from 192.168.8.1
bound to 192.168.8.126 -- renewal in 72956 seconds.
[ OK ]
请高手提点解决办法

发表于 : 2008-04-30 14:25
abcman
转回静态IP时/etc/init.d/networking restart 正常
可以PING自己的IP和LOCALHOST,但不能PING别人和网关

interfaces:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.211
netmask 255.255.255.0
gateway 192.168.0.1

*******************************
cost@lserver:~$ ifconfig
lo 链路封装:本地环回
inet 地址:127.0.0.1 掩码:255.0.0.0
inet6 地址: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 跃点数:1
接收数据包:155 错误:0 丢弃:0 过载:0 帧数:0
发送数据包:155 错误:0 丢弃:0 过载:0 载波:0
碰撞:0 发送队列长度:0
接收字节:12142 (11.8 KB) 发送字节:12142 (11.8 KB)

eth0 链路封装:以太网 硬件地址 00:1D:7D:74:0D:3B
inet 地址:192.168.0.211 广播:192.168.0.255 掩码:255.255.255.0
BROADCAST MULTICAST MTU:1500 跃点数:1
接收数据包:0 错误:0 丢弃:4294967098 过载:0 帧数:0
发送数据包:0 错误:0 丢弃:856 过载:0 载波:0
碰撞:0 发送队列长度:1000
接收字节:0 (0.0 b) 发送字节:0 (0.0 b)
中断:17 基本地址:0xc000

cost@lserver:~$ ping 192.168.0.211
PING 192.168.0.211 (192.168.0.211) 56(84) bytes of data.
64 bytes from 192.168.0.211: icmp_seq=1 ttl=64 time=0.021 ms
--- 192.168.0.211 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.021/0.021/0.022/0.004 ms

cost@lserver:~$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.022 ms
--- 127.0.0.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.020/0.021/0.022/0.000 ms

cost@lserver:~$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.211 icmp_seq=2 Destination Host Unreachable

发表于 : 2008-05-03 14:26
abcman
可能是网络中有机器中了arp病毒,现在网络又正常了

发表于 : 2008-05-04 16:05
sd318129
我的是ETH1 端口。。 都要重新改吧?? 按照IFCONFIG里面的来修改?