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.
everything on the windows machine seems to look OK, but i can't get any internet connection. i can't ping anything from the windows machine except for both nics on the linux machine, 192.168.1.101 (eth0) and 192.168.17.10 (eth1).
the one thing that doesn't look right to me is that your Router is also in your scope..
range 192.168.17.10 192.168.17.50;
option routers 192.168.17.10;
your range should start at 11 since your gateway is set at a static address of 10.
So how is your network setup ? does the windows client need to go through the Linux machine to reach the internet ?
<Internet Router 192.168.1.1>-------------< 192.168.1.101 Linux PC 192.168.17.10 >--------< 192.168.17.50 Windows Client>
if that's the case you need to configure IP forwarding on the Linux PC, and ensure there's a Static route defined in the Internet router that points the way to the 192.168.17.0 subnet..
your range should start at 11 since your gateway is set at a static address of 10.
192.168.17.10 is the dhcp server. shouldn't the dhcp server be included in the range so the client can find the server?
Quote:
So how is your network setup ? does the windows client need to go through the Linux machine to reach the internet ?
<Internet Router 192.168.1.1>-------------< 192.168.1.101 Linux PC 192.168.17.10 >----< SWITCH >----< 192.168.17.50 Windows Client>
yes, this is exactly how i have network setup, with the exception of one switch in between. the reason i want it to be routed through a linux machine is because i want to run the window clients under a samba domain controller, so eventually there will be many more windows clients.
Quote:
if that's the case you need to configure IP forwarding on the Linux PC,
i'm not sure how to do this, but i will research. could you enlighten me?
Quote:
and ensure there's a Static route defined in the Internet router that points the way to the 192.168.17.0 subnet..
Is your router a NAT router? If that is the case you may not need to use masquerading but just IP forwarding. I did something similar when I used my laptop's wireless interface for my Desktop to access the wireless router. I used a subnet instead.
The wireless interface was on 192.168.1.0/25 and the Desktop was on 192.168.1.128/25 (these are network addresses). I believe that the router was set up for 192.168.1.0/25 as well as the wlan0 interface.
I needed to modprobe the ip_conntrack kernel module before it would work. I don't understand why. Also, the name has changed in recent kernels to I think "nf_conntrack". My Desktop was running Linux and not XP but I that shouldn't matter. Anyway, if the router is a NAT router, you shouldn't need to do the NATing in your Linux machine. But you can of course.
Note: I am not entirely certain on the old name of the kernel module. It might have been tcp_conntrack instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.