Default gateway and ip, won't stay. SuSe9.1 2.6.5-7.201
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Default gateway and ip, won't stay. SuSe9.1 2.6.5-7.201
Hi all
As the title says, every time I restart the box, I have to give my wireless nic an IP, and set the default gateway, its set to get the ip through DHCP, and my router is set aswell. My network uses 192.168, everything else on the network gets its ip from the router. I use static ips on my network, but this box still doesn't pick it up from the router, once I give this box an ip using ifconfig eth1 <ip address> and set the default gateway using route add default gw <routers ip address> everything works fine, until I reboot.
Does anyone know why this happens, or what I can do to rectify the problem. Any help would be greatly appreciated.
Thank you very much for the link, after reading through it I created a file called ifcfg-eth-id-<wlan mac addy> in /etc/sysconfig/network. After re-booting, I could connect to my network but not outside, without using route add default gw. I searched some more and found a thread on this site with a problem similar to mine, basically, I have an onboard network card, which I havn't configured, and SuSe was trying to configure this, as this is on eth0, when it was unable to get an ip for this it ignored the wlan request, so I promptly disabled the onboard nic, and hey presto, all is in order. I think I can now go and delete the file fcfg-eth-id-<wlan mac addy> in /etc/sysconfig/network, as its a usb wlan card, and reading more I believe its configured by the ifcfg-wlan-bus-usb file in /etc/sysconfig/network, which is there .
Seems I was wrong about deleting the file fcfg-eth-id-<wlan mac addy> in /etc/sysconfig/network, when I did I couldn't connect to anything without ifconfig eth1 <ip address> and route add deafualt gw. So I created the file again, configured it and all is good again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.