Skip to contentSkip to conversation

Multiple Internet Interface Issue

LARTC D Webster 2 participants 2 messages Jul 9, 2001 – Jul 13, 2001

lore
Share & tools
lore

D Webster

author
#0 lore raw

Okay, here's the deal, (diagram below)

I currently have 3 NIC's configured in my Linux server.
eth0 serving the home network
eth2 Cable modem to internet
ppp0 ADSL to internet (through eth1)

Connections can be established from eth0 (192.168.0.0/255)

                           and from eth2 (24.250.85.128/128).  Because eth2

has the first default route.

However, ppp0 has a problem.
Traffic is received from ppp0 there is no return traffic through that interface
unless the first default route is directing traffic through ppp0. Meaning nothing goes out through eth2.

At this point, all I want is for connections able to be successfully established through both internet interfaces (ppp0, eth2). In its present state if someone tries to access any services(ping/telnet/ssh/etc.) via the interface not setup as the default route, the connections timeout.

Network Diagram

Intranet Internet's

inet addr: 192.168.0.0 eth2 inet addr:
24.250.85.201
Bcast: 192.168.0.255 eth0 Bcast:
24.250.85.255
Mask: 255.255.255.0 Mask:
255.255.255.128

ppp0 inet
addr: 207.30.233.216

P-t-P: 207.30.233.1

Mask: 255.255.255.255
Kernel IP routing table

Destination Gateway Genmask Flags Metric Ref Use
Iface
207.30.233.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
#note: Is host

24.250.85.128   0.0.0.0         255.255.255.128 U     0      0        0 eth2
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         24.250.85.129   0.0.0.0         UG    0      0        0 eth2

#Default Route
0.0.0.0 207.30.233.1 0.0.0.0 UG 0 0 0 ppp0
#Default Route

Thanks for any help you can offer!
-Jon

#1 lore raw

Destination Gateway Genmask Flags Metric Ref Use
Iface
209.26.145.1 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
24.250.85.128 0.0.0.0 255.255.255.128 U 0 0 0
eth2
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
0.0.0.0 24.250.85.129 0.0.0.0 UG 0 0 0
eth2 #default route
0.0.0.0 209.26.145.1 0.0.0.0 UG 0 0 0
ppp0 #default route

These default routes were added automatically when the interfaces are brought up separately. The IP address for ppp0 is 209.26.145.189. If I try to ping 209.26.145.189 from an external machine over the internet, the packets are received, but none are sent. What configuring is needed for data to be sent and received over both interfaces (and retain their source/destination addresses)?

Assuming you don't care about sending the data down the shortest path (which would require something like BGP4), configure your kernel for equal cost multipath and then just set both devices as your default route.