当前位置: 技术问答>linux和unix
RedHat linux 无法上网
来源: 互联网 发布时间:2016-03-27
本文导语: 手动配置IP IP:192.168.1.110 网关是:192.168.1.1 #route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0...
手动配置IP
IP:192.168.1.110
网关是:192.168.1.1
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
ifconfig -a命令
eth0 Link encap:Ethernet HWaddr 00:19:21:46:43:70
inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:21ff:fe46:4370/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4542 (4.4 KiB) TX bytes:0 (0.0 b)
Interrupt:193 Base address:0xe000
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:1843 errors:0 dropped:0 overruns:0 frame:0
TX packets:1843 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2147117 (2.0 MiB) TX bytes:2147117 (2.0 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
通过DHCP无法激活网卡
Determining IP information for eth0... failed.
网卡驱动是重新安装的
00:14.0 Ethernet controller: nVidia Corporation MCP51 Ethernet Controller (rev a3)
linux 版本
Linux localhost.localdomain 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 athlon i386 GNU/Linux
刚入手LINUX 不知道如何着手 请高手指点 在线等待....
IP:192.168.1.110
网关是:192.168.1.1
#route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
ifconfig -a命令
eth0 Link encap:Ethernet HWaddr 00:19:21:46:43:70
inet addr:192.168.1.110 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:21ff:fe46:4370/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4542 (4.4 KiB) TX bytes:0 (0.0 b)
Interrupt:193 Base address:0xe000
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:1843 errors:0 dropped:0 overruns:0 frame:0
TX packets:1843 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2147117 (2.0 MiB) TX bytes:2147117 (2.0 MiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
通过DHCP无法激活网卡
Determining IP information for eth0... failed.
网卡驱动是重新安装的
00:14.0 Ethernet controller: nVidia Corporation MCP51 Ethernet Controller (rev a3)
linux 版本
Linux localhost.localdomain 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 athlon i386 GNU/Linux
刚入手LINUX 不知道如何着手 请高手指点 在线等待....
|
既然已经手动配置了,为啥还要去dhcp。
估计是你配置的地方,哪儿冲突了。
分析不出具体原因,你还是把配置文件都再查一遍吧
估计是你配置的地方,哪儿冲突了。
分析不出具体原因,你还是把配置文件都再查一遍吧
|
config以后要重启,将config激活。
redhad没用过不知道,debian是这样的:
/etc/init.d/networking restart
看到done出来以后,你再ping www.google.com试试看!
帮助上了请给分,兄弟提个问题都没分送,可怜啊。
redhad没用过不知道,debian是这样的:
/etc/init.d/networking restart
看到done出来以后,你再ping www.google.com试试看!
帮助上了请给分,兄弟提个问题都没分送,可怜啊。
|
DNS问题的可能比较大
有没试过用IP访问网站,如果可以,就证明是DNS的问题了
有没试过用IP访问网站,如果可以,就证明是DNS的问题了