网络配置文件里面的eth0和eth1为什么和实际的是相反的?

为当前最终发行版之前的所有版本提供支持
回复
fayejt
帖子: 4
注册时间: 2007-03-12 16:38
送出感谢: 0
接收感谢: 0

网络配置文件里面的eth0和eth1为什么和实际的是相反的?

#1

帖子 fayejt » 2007-08-11 13:14

配置文件如下

代码: 全选

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

#iface eth1 inet dhcp

#auto eth2
#iface eth2 inet dhcp

#auto ath0
#iface ath0 inet dhcp

#auto wlan0
#iface wlan0 inet dhcp
而ifconfig的结果是

代码: 全选

eth0      Link encap:Ethernet  HWaddr (MAC地址省略)  
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:20 Base address:0x6000 

eth1      Link encap:Ethernet  HWaddr (MAC地址省略) 
          inet addr:58.30.XX.XX(省略)  Bcast:255.255.255.255  Mask:255.255.240.0
          inet6 addr: fe80::205:5dff:fe0f:a66d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:941 errors:0 dropped:0 overruns:0 frame:0
          TX packets:509 errors:0 dropped:0 overruns:0 carrier:0
          collisions:1 txqueuelen:1000 
          RX bytes:978655 (955.7 KiB)  TX bytes:56224 (54.9 KiB)
          Interrupt:19 Base address:0xa000 

eth0:avah Link encap:Ethernet  HWaddr 00:11:09:C0:C5:C4  
          inet addr:169.254.9.76  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Interrupt:20 Base address:0x6000 

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:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:100 (100.0 b)  TX bytes:100 (100.0 b)


结果是eth1得到了IP,我都迷糊了~~~~


还有,那个eth0:avah是什么意思啊
谢谢
fayejt
帖子: 4
注册时间: 2007-03-12 16:38
送出感谢: 0
接收感谢: 0

#2

帖子 fayejt » 2007-08-11 18:46

没人知道么?
回复

回到 “老旧版本支持”