Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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 have one network adapter setup with a fixed external IP address of 88.96.xx.20 with a subnet of 255.255.255.248 from my isp
the router address is 88.96.xx.22 with the same subnet
I want to setup an internal network running as dhcp, with a range of 192.168.2.1 to 192.168.2.60 on a second network adapter, can any body help cant seem to get the 2 to talk
I am used to windows 2003 which handles this for me, sorry I am a linux newbie
getting the 2 to "talk" has nothing to do with DHCP at all, what are you actually asking about, how to set up a DHCP server or enabling routing on linux? dhcp servers are generally very easy to configure, just requiring basica modification of the default dhcpd.conf file that comes with it. as for routing....
woah... those commands are, as i said, nothing at all to do wtih DHCP, and certainly have no place in a dhcpd.conf file at all. they are bash commands that would be run once on startup of your server. as for what your default gateway is, well you really must know that... it's whatever machine is to be used as the default route towards the internet. i.e. the one that those commands i gave should be run on.
What acid meant I think is that you need to insert the "echo...." command in your /etc/rc.d/rc.local file.
This means when ever your pc starts up it will run those two command which allows ip forwarding..
the "iptables -t nat ...." commmand you have to insert from the command line,then do a "service iptables save" to save it. Masquerading is needed to work through yout linux box.. Your default gw on your box is supposed to be the 88.96.xx.22 ip.
When you say you can't get the 2 to talk what do you mean? can you ping the two ip's of your nic's from your linux box??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.