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.
Hi every body
I have linux machine with 2 ethernet with network addresses 192.168.1.0and 192.168.2.0, I want to my stations on 192.168.2.0 access to station on 192.168.1.0 and vice versa. my routing table is :
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 192.168.1.2 255.255.255.0 UG 0 0 0 eth1
I have enabled forwarding in kernel but stations on tow network does not see another.
please guide me
thanks for any guidance and instruction
thanks for your attention
But every ethernet is related to one network, I can not combine these networks, is disturbed my network design
thanks for any help or guidance
If you already have forwarding on then what you need to do is set the route for the other network to point to that box in the other machines or set the route for the other in the gateway for that network. (wow that sounds confusing when I read it back)
for example:
In machine 192.168.2.24 you'd need to add a route for 192.168.1.0/24 that points to the box bridging the networks
or you'd need to have the default gateway router/box for 192.168.2.0 have a route for 192.168.1.0/24 that points to the box bridging the networks
and you need to do the same thing on the other network
If you already have forwarding on then what you need to do is set the route for the other network to point to that box in the other machines or set the route for the other in the gateway for that network. (wow that sounds confusing when I read it back)
for example:
In machine 192.168.2.24 you'd need to add a route for 192.168.1.0/24 that points to the box bridging the networks
or you'd need to have the default gateway router/box for 192.168.2.0 have a route for 192.168.1.0/24 that points to the box bridging the networks
and you need to do the same thing on the other network
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.