RedHat Enterprise Linux 5.X无法上网的解决办法

环境:RedHat Enterprise Linux 5.X

现象:

使用ifconfig命令查看网卡信息,发现有virbr0、xenbr0等多余的信息,如下:

[root@EXFO ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:64:C4:80
          inet addr:XXX.XX.XX.XX  Bcast:XXX.XX.XX.XX  Mask:255.255.255.192
          inet6 addr: fe80::20c:29ff:fe64:c480/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4510 errors:0 dropped:0 overruns:0 frame:0
          TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:281040 (274.4 KiB)  TX bytes:26056 (25.4 KiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:29:64:C4:8A
          inet addr:192.216.6.78  Bcast:192.216.6.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe64:c48a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:421 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:80721 (78.8 KiB)  TX bytes:93549 (91.3 KiB)
          Base address:0x1078 Memory:f4840000-f4860000

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:1664 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1664 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2460982 (2.3 MiB)  TX bytes:2460982 (2.3 MiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:6152 errors:0 dropped:0 overruns:0 frame:0
          TX packets:376 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:384572 (375.5 KiB)  TX bytes:44157 (43.1 KiB)
          Base address:0x1070 Memory:f4820000-f4840000

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:332 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5989 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:36048 (35.2 KiB)  TX bytes:372384 (363.6 KiB)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:10188 (9.9 KiB)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/26572.html