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 am having a hard time wrapping my brain around these settings. So please bear with me.
I have a server with 3 network cards (Eth0 is connected to the internet). I want to use eth1 and eth2 to serve 2 separate networks.
eth1 will serve about 15-20 unique computers and eth2 will serve a laptop network with up to 200 different laptops (that will come and go).
Now here is where I get confused. My internet connection is working...I can ping internet addresses from the CLI. And the networked computers can see the server...I can ping the networked computers. But my networked computers cannot access the internet.
I don't know what step to take next. I "think" I need to set up routing but I don't know how. There are gateway addresses and such to set up but I don't know which ones to use.
Please help (and be gentle). I have been stuck here for days and I just can't figure it out.
For each client the appropriate gateway will be 192.168.2.1 or 192.168.3.1, depending on the network.
If you want your server box to act as a gateway, you will need to enable IP-forwarding. (see e.g.: http://www.yolinux.com/TUTORIALS/Lin...etworking.html (Subsection: Enable Forwarding)). Basically you will need to put an 1 to /proc/sys/net/ipv4/ip_forward.
Thanks for the reply. But alas, the setting /proc/sys/net/ipv4/ip_forward is already set at 1.
The tutorial doesn't seem to address my incompetence. I still don't get it. I would love it if DHCP could dynamically assign addresses to the laptop connections. But webmin is not helpful setting up DHCP.
You can setup dhcpd on your server manually by editing /etc/dhcpd.conf and starting dhcpd. "man dhcpd" provides some examples of configuration options and "man dhcpd.conf" explains all configuration options.
I modified an example from "man dhcpd.conf":
Code:
subnet 192.168.3.0 netmask 255.255.255.0 {
option routers 192.168.3.1;
# Unknown clients get this pool.
pool {
option domain-name-servers <your DNS goes here>;
max-lease-time 300;
range 192.168.3.200 192.168.3.253;
allow unknown-clients;
}
# Known clients get this pool.
pool {
option domain-name-servers <your DNS goes here>;
max-lease-time 28800;
range 192.168.3.5 192.168.3.199;
deny unknown-clients;
}
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.