大家好,ubuntu 8.04下面,我每次重启,网卡的名字都会自动+1,就像标题那样。
如果现在是eth0,那么重启后就是eth1。
因为使用adsl上网,所以每次都要重新设置adsl,非常麻烦。
各位有什么意见和解决方法么?让我的网卡名字固定起来。
[问题]eth0->eth1 and eth1->eth2 and so on
-
- 帖子: 14
- 注册时间: 2006-09-26 21:24
- 来自: hangzhou
- 联系:
- dogfox
- 论坛版主
- 帖子: 5311
- 注册时间: 2006-09-02 14:18
- 来自: 汉桑城
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- 想入非非
- 帖子: 8078
- 注册时间: 2008-07-14 22:42
- 来自: Beijing
- 联系:
-
- 帖子: 14
- 注册时间: 2006-09-26 21:24
- 来自: hangzhou
- 联系:
- dogfox
- 论坛版主
- 帖子: 5311
- 注册时间: 2006-09-02 14:18
- 来自: 汉桑城
- 联系:
-
- 帖子: 14
- 注册时间: 2006-09-26 21:24
- 来自: hangzhou
- 联系:
不明白楼上的意思。我把ifconfig -a的结果贴上来好噢
其中的eth6就是变化的网卡名字,也就是说下次我重启的时候名字会变为eth7。你的那么down后在up是要做什么呢?我这里没有eth0,怎么up eth0,请教
代码: 全选
eth6 Link encap:Ethernet HWaddr 00:00:6c:bb:b3:c2
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26855 errors:0 dropped:0 overruns:0 frame:0
TX packets:22744 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33856071 (32.2 MB) TX bytes:2584829 (2.4 MB)
Interrupt:220 Base address:0x6000
eth6:avahi Link encap:Ethernet HWaddr 00:00:6c:bb:b3:c2
inet addr:169.254.9.160 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:220 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:2837 errors:0 dropped:0 overruns:0 frame:0
TX packets:2837 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:264541 (258.3 KB) TX bytes:264541 (258.3 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:220.191.36.145 P-t-P:61.130.120.156 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:26693 errors:0 dropped:0 overruns:0 frame:0
TX packets:22509 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:33259039 (31.7 MB) TX bytes:1980922 (1.8 MB)