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 using RH-9 distro with squid. everything is working fine.
My setup is like this for internet iam using RH-9. for intranet portal i am using one router. Now my problem is when i give the gateway to the router intranet portal is working fine, and i am not accessing internet. when i give the gateway of linux box i can able to access internet and not intranet portal. Just tell me how to route both the gateways and access both the things at same time.
you have to add a route for the intranet "range". If you don't have any route about the intranet, the linux just send everything to your default gateway (the internet) so it gets lost.
Assuming your intranet range is "192.168.1.0", it shuold be something like :
route add -net 192.168.1.0 netmask 192.168.1.255 gw 192.168.1.1 dev eth0
Of course, you will have the use the correct range/gateway ip/interface.
If I have different range like 192.168.10.0, so how do I link it up with the 192.168.1.1 (router).
I am able to ping from 192.168.10.23(eth1) to 192.168.1.23 (eth0), but I cannot ping from eth1 to either 192.168.1.1 or outside. How do I forward the packets from eth0 to outsdie?
I don't really understand what you ask. If you want your computer to send to a router "192.168.1.1" that "route" the 192.168.10.0 network, create a route like "route add -net 192.168.10.0 netmask 192.168.1.255 gw 192.168.1.1 dev eth0".
About the forwarding, well... it shouldn't be done by the linux computer unless the linux computer IS actually acting as the router. Make sure your ROUTER (what kind of router is it??) is correctly configurated to forward from an ip range to another, you might need to add some route in the router as well.
i have 2 lan cards in my linux box. 1 is for inernet and other is for local. I have one external router (DAX) also.
The router is for lease line in which through i am accessing SAP PORTAL. Now my problem is that i can't access both internet and SAP portal at a time. Explain me how to access both the things
The private ip starts from 172.35.1.1 and my linux box ip is 172.35.1.9.
The ip address of the router is 172.35.1.254.
If i want to access SAP portal i will change the gateway (windows system) to 172.35.1.254 and if i want to access internet i will change the gateway to 172.35.1.9.
I don't really understand what you ask. If you want your computer to send to a router "192.168.1.1" that "route" the 192.168.10.0 network, create a route like "route add -net 192.168.10.0 netmask 192.168.1.255 gw 192.168.1.1 dev eth0".
About the forwarding, well... it shouldn't be done by the linux computer unless the linux computer IS actually acting as the router. Make sure your ROUTER (what kind of router is it??) is correctly configurated to forward from an ip range to another, you might need to add some route in the router as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.