I’m maintaining a very modest network at home, with OpenSUSE as OS on the server. I got the DHCP and routing working by following the instructions in the wiki. However, every time I run dhclient on the server/router, it appears my own DHCP server assigns an address to the internal network card despite the fact I specifically assigned it to be static using Yast.
The situation resolves itself when I restart the network services with the command /etc/init.d/network restart.
Otherwise no problem, but it also seems the internal network card gets a “new” IP from my server every time the external card requests one from the ISP. This is more of an issue. Any suggestions here?
Which openSUSE?
When you use YaST > network devices > network configuration and you have unchecked DHCB in thee Hostname/DNS tab DHCP should not be used.
As your post completely lacks anything about what and how you configured where, this is just a try to help you. HTH.
EDIT: See this is your first post here. Welcome and hope you enjoy the help here as well as openSUSE.
My apologies for the missing info.
Version is OpenSUSE 11.2, installed from the KDE CD, and patched up from the online repositories. Plus, VLC Media Player and rtorrent are installed from outside the repos, but I guess this has no meaning to us.
Routing I set up step-by-step strictly according to your Wiki: ICS - openSUSE
Of course, in the end I had to restart network services to get it to work.
DHCP I set up according to theurbanpenguin at youtube: https://www.youtube.com/watch?v=vFTFc5yci3w)
Basically I have the following settings: gateway (internal NIC, eth1, this is the one that’s getting messed up all the time) 192.168.0.254, lease database 192.168.0.1-192.168.0.10, DNS one I got from the homepage of my ISP and default and maximum lease times default values.
Unchecking as you said does not seem to have any impact on this.
I am afraid that I do not understand you. That may be my fault, don’t bother :).
You say you configured with YaST using static. I thought you ment by that you use a fixed IP address and thus are NOT using DHCP. But you say you use DHCP. That means I understood it wrong I think. Can you please post the output of
cat /etc/sysconfig/network/ifcfg-eth1
so we can see what your configuration looks like?
Now it did it again on its own. Had to go to the server and change the internal NIC’s address and netmask manually.
Sounds a little different to me:
However, every time I run dhclient on the server/router, it appears my own DHCP server assigns an address to the internal network card despite the fact I specifically assigned it to be static using Yast.
So dhclient is doing exactly what you tell it to do, just don’t run dhclient and your problem is fixed.
If you run it outside of the ifup-scripts, of course it will ignore the settings made with YaST.
Why do you run dhclient at all if you use static IPs?
You certainly don’t need it for your DHCP Server.