Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in 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've an ACER Travelmate 430 with a buildin wireless card (an Intersil Prism 2.5). and a wired network card Realtek RTL-8139
My laptop has a dual boot WindowsXP - SUSE 9.3.
My home network has a SMC wireless router connected to the internet via a cable-modem, 3 pcs with Win XP and 2000.
The network is functional, each computers sees each other and have internet access under Windows.
My laptop, under SUSE 9.3, can see and access the internal network (ping, samba, network sharing, ..) through the wireless network card but cannot access the internet. When I plug a network cable in the Realtek connector without changing any configuration nor rebooting, miracle, my laptop can access the internet.
I've configured the default Gateway with Yast, it works with the wired network card, but not with the wireless network card.
my /etc/resolv.conf is : nameserver 192.168.2.1
search workgroup
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Can you ping and external IP out there on the net? If so try changing nameserver to your providers true DNS numbers. Also check and see if youe /etc/hosts.conf looks like this: order hosts,bind
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Glad to see you have it going. Must be using something like Network Manager to detec when network ports are connected. If you are only going to use the wireless mostly check your ifcfg-eth0 file and see if it says
onboot=no
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
In Fedora Core it uses Network Manager and I does not do a very good job with my hardware. So I removed it and run this two scripts to switch between either nics. It requires to have the commands ifdown anf ifup useable as a user. I added them to my sudeors file but if you are the only user you can set the sticky bit on each command. Both commands require root access.
chmod +s /sbin/ifup
chmod +s /sbin/ifdown
If you wish to modify your /etc/sudoers file then to do that it requires using the command ' visudo ' as root of course. Add a line like this.
Code:
username ALL=NOPASSWD: /sbin/ifdown, /sbin/ifup
This allows only one person to use the command that requires root access but will not require the usage of a password to do the command. Most defaults use the vi editor. If you are new to vi it is pretty tricky to use. You can change to use your favorite editor by issing the command ' export EDITOR=nedit ' to use nedit or change to say nano ' export EDITOR=nano '.
Once that is added then create the two scripts and if you wish you can make softlinks to them to your Desktop. Note after making the script you will need to make them executable use the command ' chmod +x /home/username/home_eth0_down_eth1_up.sh '. Also replace all references to username to you username account. The last part in each script creates a small gui window showing your network interfaces to make sure they took. If not needed you can leave out the xmessage line. The ping statement is needed on some systems so the command can finish before the next one is run. Problably not needed in this type of setup until you get to the xmessage part.
Not knowing about scripting that great I am sure someone could write all this up in one script that ask you which nic you want up and also do it on the Desktop. That is one thing I would sure like to learn how to do.
Contents of file:///home/username/home_eth0_down_eth1_up.sh
Code:
#!/bin/sh
# This brings eth0 down.
sudo /sbin/ifdown eth0
# This creates a pause before running the next command.
ping -c3 127.0.0.1 > /dev/null
# This brings eth1 up
sudo /sbin/ifup eth1
# This creates a pause before running the next command.
ping -c3 127.0.0.1 > /dev/null
# xmessage -center -file /home/username/home_eth1_down_eth0_up.txt
ifconfig > /home/username/nicinfo
xmessage -center -file /home/username/nicinfo
Contents of file:///home/username/home_eth1_down_eth0_up.sh
Code:
#!/bin/sh
#This Brings eth1 down
sudo /sbin/ifdown eth1
# This creates a pause before running the next command.
ping -c3 127.0.0.1 > /dev/null
# This brings eth0 up
sudo /sbin/ifup eth0
# This creates a pause before running the next command.
ping -c3 127.0.0.1 > /dev/null
# xmessage -center -file /home/username/home_eth1_down_eth0_up.txt
ifconfig > /home/username/nicinfo
xmessage -center -file /home/username/nicinfo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.