On Thu, 2004-11-11 at 13:51, Jerry Feldman wrote:
On Thursday 11 November 2004 2:33 pm, Charles McColm wrote:
Which service do I need to restart when I remove a WiFi card and reinsert it? I tried /etc/initd/network restart and /etc/initd/pcmcia restart but I still get network unreachable messages when hotplugging a wifi card. KWifimanager shows the signal strength is excellent and I seem to have a DHCP address (Wifi works fine if I reboot), but I get "network unreachable" error messages after removing and reinserting my WiFi card.
Seems to just be a routing problem, but I'm not sure which service to restart. You can simply restart your network: # rcnetwork restart. I found on SuSE 9.1 that when both the wired and wireless come up, then sometimes the routing table is messed up, usually the default route is missing. You can add that by issuing a route command: # route add -net 0 gw xxx.xxx.xxx.xxx eth1 Where eth1 could be wlan0 or whatever the wireless card is, and the gateway is your WAP.
Another way I sometimes do it at MIT is to turn off eth0: # ifdown eth0. then just pop the wireless.
What I did on my laptop was to set the built-in ethernet nic's startmode to manual. Go to YAST - SYSTEM - EDITOR for /ect/sysconfig Files - Network - eth0 - STARTMODE - manual. The built-in wireless nic is configured as wlan0 and its STARTMODE is onboot. When I feel a need for speed or there is no wireless connectivity available I just ifdown wlan0 then ifup eth0.