IP route ppp0 + eth0 access to outside network

Posted by Vitor on Server Fault See other posts from Server Fault or by Vitor
Published on 2012-02-01T19:57:26Z Indexed on 2012/06/27 3:17 UTC
Read the original article Hit count: 483

Filed under:
|

I need some help in define a route I have two connections one from eth0 and other a ppp0 (a 3G card) Not having the ppp0 connection active my route table is:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         DD-WRT          0.0.0.0         UG    100    0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0

I can access my webserver from an outside network through ethernet interface Than I have also my ppp0 3G connection active havig the following route table:

D

estination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.64.64.64     0.0.0.0         UG    0      0        0 ppp0
10.64.64.64     *               255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0

Now I only can access my webserver in outside networks through the IP of the 3G connection Note that my server is serving at 0.0.0.0 IP (to all interfaces) But I need to get access to webserver to both interfaces ethernet and 3G connection I only can have access to both connection in local network

Any help to configure this network to have both interfaces with outside networks access is welcome


Can anyone give me an example to configure this network with 2 gateways to give outside networks access One for IP 192.168.1.149 and other for the ppp0 IP 89.214.60.196

Tanks

© Server Fault or respective owner

Related posts about linux

Related posts about networking