LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Neither wireless or wired network is working (https://www.linuxquestions.org/questions/linux-wireless-networking-41/neither-wireless-or-wired-network-is-working-433240/)

hsimah 04-09-2006 01:28 AM

Neither wireless or wired network is working
 
I have a Vaio laptop with an Intel Pro/100 wired LAN port and an Intel 2200BG wireless controller.

It didn't take much to get the wired port working, just compile e100 into the kernel.

Then I attempted to use wireless. This is my first forray into wireless, and its on linux, so I am having a little trouble.

I got the drivers for my wireless card and followed the instructions on the IPW2200 site, and it didn't work. You can see my thread in the wireless forum about it.

So I decided to do other stuff with my laptop and plugged the calbe back in. And now the wired port is not working either. I can ping local machines, even log into my router, stream mp3s from my other slack box etc, but no internet. /etc/rc.d/rc.inet1.conf is set to DHCP and is basically identical to my other linux machine. ifconfig eth0 returns basically the same on both, except my laptop has an IPv6 IP too.

At boot I get a message saying no IPv6 routers have been found.

I would like to get wireless working, but more importantly I need the wired controller back up.

Please someone help me :(

PS I hope I have given enough info on this. Google is being really unhelpful with regards to any networking on linux.

cwwilson721 04-09-2006 07:33 AM

Post your ifconfig here. We'll take it one step at a time.

hsimah 04-09-2006 05:49 PM

Thanks ever so much for posting. I am seriously stumped with this!

Code:

root@slackware:/# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:4A:F5:69:09
    inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::201:4aff:fef5:6909/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets: 1 errors:0 dropped:0 overruns:0 frame:0
    TX packets: 6 errors:0 dropped:0 overruns:0 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:60 (60.0 b) TX bytes:468 (468.0 b)

eth1 Link encap:Ethernet HWaddr 00:16:6F:47:F3:3B
    inet6 addr: fe80::201:4aff:fef5:6909/64 Scope:Link
    UP BROADCAST NOTRAILERS 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 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:10 Bast address:0x2000 Memory:b0108000-b0108fff

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: 1 errors:0 dropped:0 overruns:0 frame:0
    TX packets: 6 errors:0 dropped:0 overruns:0 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:784 (784.0 b) TX bytes:784 (784.0 b)

At startup get a notice saying several lines of /etc/rc.d/rc.inet1 are unreadable. "eth_up". Looking in that file there are 7 lines at the top, and two further in lines of code. Also at startup it says no IPv6 routers found. I don't know much about networking but I know I don't have/need IPv6.

EDIT: Just rebooted again, eth1 (wireless) does not start, I turned the hardware switch off. Same messages as before, but the wired network seems to be working. Locally and the internet. I am going to reboot with wireless activated to see what happens.

OK, rebooted with no cable plugged in and the wireless on, and ifconfig returns this:

Code:

eth1 Link encap:Ethernet HWaddr 00:16:6F:47:F3:3B
    inet addr:192.168.0.46 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::201:4aff:fef5:6909/64 Scope:Link
    UP BROADCAST NOTRAILERS MULTICAST MTU:1500 Metric:1
    RX packets:55 errors:0 dropped:0 overruns:0 frame:0
    TX packets:19 errors:0 dropped:0 overruns:0 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
    Interrupt:10 Bast address:0x2000 Memory:b0108000-b0108fff

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: 1 errors:0 dropped:0 overruns:0 frame:0
    TX packets: 6 errors:0 dropped:0 overruns:0 frame:0
    collisions:0 txqueuelen:1000
    RX bytes:784 (784.0 b) TX bytes:784 (784.0 b)

I can now ping both on wired and wireless. Wired accesses the internet, but wireless just says network unreachable (in links). Hope this is enough info to help you help me :D I'm off to do my mid semester exams now "yay".

cwwilson721 04-09-2006 05:54 PM

Goto http://www.slackware.com/~alien/rc_scripts/
and get those scripts. Copy them to /etc/rc.d and make them executable.

Then run 'netconfig' again, then reboot, and see if anything works.

If eth0 works, make a backup of those scripts, then try to get your wireless working.

hsimah 04-09-2006 06:46 PM

OK, did that. Wired network is working fine with static IP. All files backed up, just in case. Edited for wireless.

My router "sees" my computer, ping says "Destination host ureachable". I think its my WEP key. I put it in right, but I think it may be in the wrong config file or soemthing.

Thanks for the help, I'll have a twiddle after my exam :)

cwwilson721 04-09-2006 08:40 PM

Cool....Seems to be you are almost there....

hsimah 04-10-2006 12:58 AM

Yeah, I hope so :D

After this I just have to get multiple accesspoints working (so I can use it at uni), and power management (none on right now).

OK. Update. Right this second it is wireless is working. What I did was just include the ESSID and KEY in rc.wireless.conf. Then I ran /etc/rc.d/rc.inet1 eth1_start and it worked. Eth1 is set up to use DHCP. I don't like DHCP, I prefer static IP's on my LAN (just for ease of use), but it is working with it, so my laptop can run one for a while.

I compiled the driver for my wired controller into the kernel, is there anyway to stop that connection starting at startup, cause I won't use it unless absolutely nexessary. I used to load the module and it would run, but I thought there may be another way (ie Don't wanna do a kernel recompile :P)

I am backing all this up now and rebooting to see if it works. Thank you cwwilson, you have been a great help :)

1 reboot, 1 kernel recompile (audio issue), 1 reinstallation of drivers for wireless card, and now 1 wireless slackware laptop. Now to get multiple access points :)

cwwilson721 04-10-2006 06:21 PM

In that same link I gave you earlier, there is a dir called 'ifcfg'....I use it, and it does EXACTLY what you want. If the ethernet cable is not plugged in, it waits for it, but will continue with the wireless...usually. I had to add a script to my /etc/rc.d/rc.inet2 to make double sure. I'll post it if you need it. Just read the instructions in that directory.

As for the multi access points, do a search on good ol' Google, or here at Networking or Slackware forums.

And again, Welcome to Slackware!

PS: You can check out my setup at my homepage (link is in my sig)

hsimah 04-11-2006 07:53 PM

Ah, thats awesome! Thank you :)

I have some info on multiple accesspoints, and I am going to uni today to test them out.

EDIT: OK, I am currently using wireless at uni :D. I didnt have time to try any of those scripts, I just load/unload e100 when I need it (rarely). I havent been able to get multiple AP's, but I just changed rc.wireless.conf to pick up the ESSID and channel of the wireless hotspot I am in (we have about 11 over the whole campus and I have been trying them all). That works nicely, but is a hassle. I will look into it further after my final exam, if I don't go to the pub.

Could you post your script in any case, cwwilson, I would like to take a look at it. I know nothing of scripting and would like to learn how things are done, so I like to look at all the examples I can.

Thanks for all your help, everything seems to be falling into place :)

cwwilson721 04-12-2006 05:58 AM

To make sure wlan0 fires up , I put this in rc.inet2 (If there is no wireless card, it won't run. Make sure you are using Alien's scripts tho):
Code:

# Make sure wlan0 is started if attached (Needed for NFS/Samba remote mounts also)
# Section added because, for whatever reason,
# wlan0 does not autostart for me. Added by cwwilson721

if [ -x /etc/rc.d/rc.inet1 ]; then
 /etc/rc.d/rc.inet1 wlan0_start
fi



All times are GMT -5. The time now is 02:50 AM.