|
|

楼主 |
发表于 2009-7-16 23:35:59
|
显示全部楼层
Post by linyunxian;2006896
嗯,是的。正是ifplugd
在/etc/conf.d/net 文件里面加上
modules_eth0=( "!plug" )
用wicd似乎更方便解决无线和有线的切换。。。 不过不用命令行让自己觉得面对着黑盒,似乎也不爽,怕万一啥时不灵了,不知道该如何解决。
还是不行!
daniel@Thinkpad_T41 ~ $ grep '!plug' /etc/conf.d/net
modules_eth1=( "!plug" )
modules_eth0=( "!plug" ) daniel@Thinkpad_T41 ~ $ sudo /etc/init.d/net.eth1 restart
* WARNING: you are stopping a boot service
* Stopping sshd...
/usr/sbin/sshd' [ ok ]
* Stopping mldonkey -- please wait...
/usr/bin/mlnet'
/usr/bin/mlnet'
/usr/bin/mlnet' [ ok ]
* Stopping apache2...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ ok ]
* Bringing down interface ppp0
* Loaded modules: ip6to4 dhcpcd udhcpc dhclient system pppd br2684ctl autoipd ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger ccwgroup tuntap bonding arping apipa
* Stopping pppd on ppp0
/usr/sbin/pppd' [ ok ]
* Removing addresses
ppp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
* Bringing down interface eth1
* Loaded modules: ip6to4 dhcpcd udhcpc dhclient system pppd br2684ctl autoipd ifconfig ssidnet wpa_supplicant iwconfig ipppd ifplugd netplugd macnet macchanger ccwgroup tuntap bonding arping apipa
* Removing addresses
* 172.16.20.19/24
* Stopping wpa_cli on eth1...
* Will stop /usr/bin/wpa_cli
* Will stop PID in pidfile `/var/run/wpa_cli-eth1.pid'
* Will stop processes of `/usr/bin/wpa_cli'
* Sending signal 15 to PID 2081... [ ok ]
* Stopping wpa_supplicant on eth1...
* Will stop /usr/sbin/wpa_supplicant
* Will stop PID in pidfile `/var/run/wpa_supplicant-eth1.pid'
* Will stop processes of `/usr/sbin/wpa_supplicant'
* Sending signal 15 to PID 2074... [ ok ]
* Bringing up interface eth1
* Loaded modules: apipa arping bonding tuntap ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig autoipd pppd system dhcpcd ip6to4
* Configuring eth1 for MAC address 00:0c:f1:28:f6:6c... [ ok ]
* Starting wpa_supplicant on eth1...
* Detaching to start `/usr/sbin/wpa_supplicant'... [ ok ]
* Starting wpa_cli on eth1...
* Detaching to start `/usr/bin/wpa_cli'... [ ok ]
* Backgrounding ......
[color="Red"]* WARNING: net.eth1 has started, but is inactive
* WARNING: apache2 is scheduled to started when net.eth1 has started
* WARNING: mldonkey is scheduled to started when net.eth1 has started
* WARNING: sshd is scheduled to started when net.eth1 has started
* WARNING: net.ppp0 is scheduled to started when net.eth1 has started |
|