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 have a strange problem with my server.
There are 3 NICs in my server.One connected to the local network and the other two are connected to two separate adsl internet connections.Details are as follows.
1)Local network card(eth1).
IP : 10.4.0.101
Mask : 255.255.0.0
Gateway : Nil
2)Adsl with Static public IP(eth2)
IP : 87.236.139.10
Mask : 255.255.255.248
Gateway : 87.236.139.9(router)
3) Another Adsl(eth0)
IP : 192.168.0.7
Mask : 255.255.255.0
Gateway : 192.168.0.15(router with port forward enabled to 192.168.0.7)
And the default gateway is 192.168.0.15.The problem is that, i am unable to reach eth0 from outside with this configuration.If i remove the gateway of eth2 then i will be able to reach eth0 but wn't be able to reach eth2.I tried by adding 'default gateway' seperately for both eth0 and eth2 by route command with no success.
At a time i am able to reach any one of the NICs only.Anyone please help me to fix this problem so that i can reach my server through both of the NICs from outside.
The "another ADSL" IP address you give is an "internal" address, same with the gateway address. Most of these boxes have both an internal IP address and an external "real" address, and do NAT to connect the internal clients to the Internet.
Seems like a problem with the ADSL modem setup, connection or whatever.
The "another ADSL" IP address you give is an "internal" address, same with the gateway address. Most of these boxes have both an internal IP address and an external "real" address, and do NAT to connect the internal clients to the Internet.
Seems like a problem with the ADSL modem setup, connection or whatever.
Quote:
Originally Posted by thomaspsimon
IP : 192.168.0.7
Mask : 255.255.255.0
Gateway : 192.168.0.15(router with port forward enabled to 192.168.0.7)
Hi Pencode,
Nothing is wrong with the ADSL modem setup.yeah,192.168.0.0 is an internal address itself.I am using port forwarding from the adsl router to 192.168.0.7.All traffic reaching 192.168.0.15 will be forwarded to 192.168.0.7.As already said if i remove the gateway of the eth2 NIC,then i am able to reach the server through the NIC eth0.
I don't understand what it is that you're trying to do. You say that you want to reach your server from the outside. What is it that you're trying to do?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.