How to connect two private network in redhat?for example 10.0.0.0 and 192.168.0.0?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
The only way to allow traffic to flow between 2 networks is routing, did you mean that you don't want to use a routing device and want to use a computer ?
Simply enable forwarding, and configure your routes. Use the IP addresses for your respective interfaces as the gateway for that route on other hosts on the network.
Also look at the route command or ip command for setting routes. You should indicate which Linux distro you have.
RPM based distro's have files in /etc/sysconfig/ you can edit. Debian based distros have a file in /etc/ that configures the network.
Yes,i configure two lan cards pan ,i will check your link and let u know that how to enable forwarding jschiwal but i was wondering if only using squid should do all that na..
Squid is a proxy server, not a router. If you configure squid as a reverse proxy to cache web traffic, its IP address would be used to access web sites instead of the gateway. You may need to enable forwarding so that both networks can reach your proxy server address, or listen on both interfaces. In either case, you will have routes configured anyway. A squid server would be in addition to routing. The router works on the IP layer. A squid server works at the application layer. So you are comparing apples and strudel.
Thank you for clearing my confusion jschiwal,i enabled forwarding on pc where squid is also installed but still two network can't ping eachother,so do i have to enable forwarding on other two network pc also?
there are several possibilities, like nat, port forwarding or simple routing.
As far as I see you have two network card, one is configured in 10.0.0.0, the other is 192.168.0.0.
This host has 2 ip adresses (both NIC have one).
in 10.0.0.0 you need to configure a gateway to 192,168.0.0. This will be your RH (the 10.0.* NIC) and this host will route the requests to the other NIC. I do not know if you have DHCP, DNS or other related softwares installed. Also do you have internet access also, or other communications?
Hi,friends,i was busy for awhile,so i forgot to post it that i solved routing,for that we just have to select two nic from masquarding in firewall.thats it.thanx all for support
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.