SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am quite new to slackware (v 12.2). I have a notebook and a wireless lan network at home. Although the set-up of the dhcp stuff seems to work fine, I do not get access to the internet. here is what i did:
> ifconfig wlan0 up
> iwlist scanning
## works fine and shows my w-lan network and some others
> iwconfig wlan0 essid MYWLAN key s:NONHEXCODE ##(128bit)
## seems to work too...
> dhclient wlan0
## seems to work as well. I get an IP number and an access point. However, when I start a browser I get no access to the net.
I am sure that there is something terribly stupid I've missed here. Any help is highly appreciated.
btw: I-net with a network cable at work runs just fine (using only "ifconfig eth0 up" and "dhclient eth0" --> browser works).
In trying to get my wireless to work in slackware, things did'nt start to make sense until I read Slackware Essentail's treatment on Networking, and Alien Bob's networking (both found in the sticky above "So you want to be a Slacker").
Hey thanks for your suggestions and sorry for the late reply...
I have configured the file /etc/rc.d/rcinet1.conf - "seems" to work at startup and gets an IP. I am able to ping any computer on the local network (including the router) but I can not get out "in the wild".
okay, here is the result of "ifconfig wlan0" when connected:
What does yout /etc/resolve.conf look like? Is the information correct? Can you ping sites on the Internet by IP-address instead of hostname? I.e. to ping google:
ping 74.125.67.100
I cannot ping outside the local network (I tried several IPs). But I can ping inside. Hence, I think it is at the moment not a problem of resolving the names...
Sorry - I am currently not at home and I am connected to a wired network (which works fine). So the results of the command do not help at the moment since they refer to the present network and not to the wireless network at home. the input goes like:
search INTERNETADDRESS_OF_THE PRESENT_INSTITUT
nameserver IP_ADDRESS_1
nameserver IP_ADDRESS_2
Maybe you have an idea what should be there so I can check at home, e.g. the IP address I get from the router and/or some gateway stuff. SOrry - I am clueless.
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
OK - here's my somewhat typical output of route -n. My subnet is 192.168.1.0/24 and my router is on 192.168.1.1. This means the actual IP I am given is usually (well actually always) 192.168.1.6 from my router. I set this to be always the same in the router.
Code:
Destination Gateway Genmask Flags
192.168.1.0 0.0.0.0 255.255.255.0 U
127.0.0.0 0.0.0.0 255.0.0.0 U
0.0.0.0 192.168.1.1 0.0.0.0 UG
The "Gateway" should be the router address. This is often the address of the DNS server as well so look in /etc/resolv.conf. This is mine :
Code:
nameserver 192.168.1.1
All these addresses are handed out by a DHCP server (the router in my case) or set by you. Check it out when you are home and let us know.
ok... I may use the wrong term. I checked
# route -n
there were two lines and in column 'gateway' both had 0.0.0.0. I then
typed something like
# route add default gw 192.168.1.1
voila...
(I have additionally changed the nameserver in /etc/resolv.conf and set the routers IP address there) I do not understand how exactly this works together but as far as I see the system uses now the router IP as gateway to the interent...
In case you have any additional comments or suggestions I will be happy to hear them!
cheers
EDIT: I use DHCP and not a static IP
EDIT:
So you can see how route -n looks now:
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
Last edited by sheep; 06-13-2009 at 11:47 AM.
Reason: route output
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Cool - your routes looks OK and DNS is set. However you may wish to have this all setup automatically - have a look at Alien Bob's wiki which is pretty much the standard on setting up your network.
Have a look at /etc/rc.d/rc.inet1.conf. Make a copy and you should have something like this set up :
The USE_DHCP="yes" means your routes and DNS will be automatically assigned via DHCP. Anyway - good luck with it all !
Oh - BTW there is now a different way to all this involving WICD which means you should not make changes to /etc/rc.d/rc.inet1.conf if following this method - this is a new less flexible way of doing it and the old way still works. Personally I recomend the manual configuration.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.