- 论坛徽章:
- 0
|
回复 10楼 kenduest 的帖子
首先感谢10楼的kenduest(风云使者)的帖子。
我按照你的指导做了一下,有两个发现,一个是让人振奋的,一个是相反的
首先说说问题吧:我按照你的方法配置了以后,为了检验重启以后是否能够保存MAC信息,就立即reboot了。开机以后仍然存在问题。下面是我的操作步骤,请看看有何不妥之处:
第一步:配置网卡
vi /etc/sysconfig/network/ifcfg-eth-id-00:e0:4c:ed:46:2d (id 后面就是我要用的MAC)
结果如下:
BOOTPROTO='static'
BROADCAST='59.64.12.255'
IPADDR='59.64.12.128'[我的IP地址]
MTU='1500'
NAME='Giga-byte GA-7VM400M/7VT600 Motherboard'
NETMASK='255.255.255.0'
NETWORK='' [即使空着也可以正常上网]
REMOTE_IPADDR=''[同上]
STARTMODE='auto'
UNIQUE='rBUF.0ayJ55PfLqC'
USERCONTROL='no'
_nm_name='bus-pci-0000:00:13.0'
第二步:停用网络
localhost:~ # rcnetwork stop
结果:
Shutting down network interfaces:
eth0 device: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
eth0 No configuration found for eth0
Nevertheless the interface will be shut down.
eth0 configuration: done
Shutting down service network . . . . . . . . . . . . . done.
第三步:重启网络
localhost:~ # rcnetwork start
结果:
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
lo
lo IP address: 127.0.0.1/8 done
eth0 device: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
eth0 No configuration found for eth0 unused[这里怪怪的]
Setting up service network . . . . . . . . . . . . . . done.
第四步:reboot[为了检验重启以后能否保存MAC信息]
结果:
重新启动以后上不了网
于是重新查看网卡配置:
localhost:~ # ifconfig eth0
结果如下:
eth0 Link encap:Ethernet HWaddr 00:0F:EA:E2:75:F3(网卡的MAC,不是我要用的MAC)
BROADCAST MULTICAST MTU:1500 Metric:1 [ip没有了]
RX packets:107 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12390 (12.0 Kb) TX bytes:378 (378.0 b)
Interrupt:11 Base address:0xc000
以上是问题部分,下面是启发部分:
在重启上不了网络以后,我就老调重弹:
ifconfig eth0 down
ifconfig eth0 hw ether 00:E0:4C:ED:46:2D[要用的MAC]
ifconfig eth0 up
准备到YaST删除网卡,重新编辑
我想还是试试rcnetwork stop和rcnetwork start
然后就在进入YaST之前敲了上面两个命令
结果不用到YaST,就可以直接上网了。
[ 本帖最后由 scandy 于 2006-3-21 16:20 编辑 ] |
|