Networking Forums

Networking Forums > Computer Networking > Linux Networking > Router with two WAN connections

Reply
Thread Tools Display Modes

Router with two WAN connections

 
 
Stefan Lange-Hegermann
Guest
Posts: n/a

 
      06-24-2004, 08:37 AM
Hi!
I have a Linux router with an ethernet and pppoe outbound connection.
eth0 is active and works like a charm, whereas ppp0 seems to be active,
has a valid IP, but does nothing. ping -I ppp0 does not work from the
router to the WAN. Are there any settings I have to change to make both
connections work at a time (ssh connections should be routed through
dsl, while all other traffic will go through eth0 - don't ask why).

(eth0 has a LAN IP, because I am still working on it)
ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0B:2B:00:6A:E5
inet addr:10.0.1.23 Bcast:10.0.1.255 Mask:255.255.255.0
inet6 addr: fe80::20b:2bff:fe00:6ae5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:44504 errors:0 dropped:0 overruns:0 frame:0
TX packets:42319 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:44332822 (42.2 MiB) TX bytes:4202202 (4.0 MiB)
Interrupt:16 Base address:0xd000

eth1 Link encap:Ethernet HWaddr 00:02:44:23:BF:9A
inet6 addr: fe80::202:44ff:fe23:bf9a/64 Scope:Link
UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:9495 errors:0 dropped:0 overruns:0 frame:0
TX packets:3746 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:654810 (639.4 KiB) TX bytes:230494 (225.0 KiB)
Interrupt:18 Base address:0xd400

eth2 Link encap:Ethernet HWaddr 00:A0:4B:0F:50:E7
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2a0:4bff:fe0f:50e7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47349 errors:0 dropped:0 overruns:0 frame:0
TX packets:40868 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4687489 (4.4 MiB) TX bytes:43955978 (41.9 MiB)
Interrupt:18 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

ppp0 Link encap:Point-to-Point Protocol
inet addr:80.143.131.128 P-t-P:217.5.98.137
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1
RX packets:39 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2796 (2.7 KiB) TX bytes:2533 (2.4 KiB)


plog:
Jun 24 10:28:22 localhost pppd[4397]: PAP authentication succeeded
Jun 24 10:28:22 localhost pppd[4397]: not replacing default route to
eth0 [10.0.1.1]
Jun 24 10:28:22 localhost pppd[4397]: Cannot determine ethernet address
for proxy ARP
Jun 24 10:28:22 localhost pppd[4397]: local IP address 80.143.131.128
Jun 24 10:28:22 localhost pppd[4397]: remote IP address 217.5.98.137
Jun 24 10:28:22 localhost pppd[4397]: primary DNS address 217.237.151.225
Jun 24 10:28:22 localhost pppd[4397]: secondary DNS address 194.25.2.129


route:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
217.5.98.137 * 255.255.255.255 UH 0 0 0 ppp0
10.0.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
default 10.0.1.1 0.0.0.0 UG 0 0 0 eth0

I am totally stuck, I don't even know where to start ;( Every bit of
information is apreciated.

--
lange-(E-Mail Removed)
http://www.blackmac.de/
 
Reply With Quote
 
 
 
 
Stefan Viljoen
Guest
Posts: n/a

 
      06-25-2004, 06:03 AM
Stefan Lange-Hegermann wrote:

> Hi!
> I have a Linux router with an ethernet and pppoe outbound connection.
> eth0 is active and works like a charm, whereas ppp0 seems to be active,
> has a valid IP, but does nothing. ping -I ppp0 does not work from the
> router to the WAN. Are there any settings I have to change to make both
> connections work at a time (ssh connections should be routed through
> dsl, while all other traffic will go through eth0 - don't ask why).


Hi fellow Stefan

I spent two days and nights trying to get ppp0 to work with my Linux (Rh9)
on an ADSL router, but eventually discovered that I did not need it at all
- I had to configure ipv4 forwarding vi /etc/sysconfig/network, get DHCP
running, and configure the default gateway (which you already seemed to
have done).

What I found while trying to get ppp0 going during the initial phase was
that I could also get a ppp0 connection, which looked like the one you
posted, but that it would not work (I was trying to use RPppoE). Maybe if
you configure ipv4 forwarding and not ppp0 (what do you use to do that?
RPppoE?). Here's my /etc/sysconfig/network:

NETWORKING=yes
HOSTNAME=StefanLinux
GATEWAYDEV=eth0
GATEWAY=<router ip>
FORWARD_IPV4=yes

Hope this gives you an idea of where to go.

Regards,
--
---
Stefan Viljoen
Software Support Technician
Polar Design Solutions
 
Reply With Quote
 
Sander
Guest
Posts: n/a

 
      06-25-2004, 12:10 PM
Stefan Lange-Hegermann wrote:
> Hi!
> I have a Linux router with an ethernet and pppoe outbound connection.
> eth0 is active and works like a charm, whereas ppp0 seems to be active,
> has a valid IP, but does nothing. ping -I ppp0 does not work from the
> router to the WAN. Are there any settings I have to change to make both
> connections work at a time (ssh connections should be routed through
> dsl, while all other traffic will go through eth0 - don't ask why).
>
> (eth0 has a LAN IP, because I am still working on it)
> ifconfig:
> eth0 Link encap:Ethernet HWaddr 00:0B:2B:00:6A:E5
> inet addr:10.0.1.23 Bcast:10.0.1.255 Mask:255.255.255.0
> inet6 addr: fe80::20b:2bff:fe00:6ae5/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
> RX packets:44504 errors:0 dropped:0 overruns:0 frame:0
> TX packets:42319 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:44332822 (42.2 MiB) TX bytes:4202202 (4.0 MiB)
> Interrupt:16 Base address:0xd000
>
> eth1 Link encap:Ethernet HWaddr 00:02:44:23:BF:9A
> inet6 addr: fe80::202:44ff:fe23:bf9a/64 Scope:Link
> UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1
> RX packets:9495 errors:0 dropped:0 overruns:0 frame:0
> TX packets:3746 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:654810 (639.4 KiB) TX bytes:230494 (225.0 KiB)
> Interrupt:18 Base address:0xd400
>
> eth2 Link encap:Ethernet HWaddr 00:A0:4B:0F:50:E7
> inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
> inet6 addr: fe80::2a0:4bff:fe0f:50e7/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:47349 errors:0 dropped:0 overruns:0 frame:0
> TX packets:40868 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:4687489 (4.4 MiB) TX bytes:43955978 (41.9 MiB)
> Interrupt:18 Base address:0xd800
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:80.143.131.128 P-t-P:217.5.98.137 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1
> RX packets:39 errors:0 dropped:0 overruns:0 frame:0
> TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:2796 (2.7 KiB) TX bytes:2533 (2.4 KiB)
>
>
> plog:
> Jun 24 10:28:22 localhost pppd[4397]: PAP authentication succeeded
> Jun 24 10:28:22 localhost pppd[4397]: not replacing default route to
> eth0 [10.0.1.1]
> Jun 24 10:28:22 localhost pppd[4397]: Cannot determine ethernet address
> for proxy ARP
> Jun 24 10:28:22 localhost pppd[4397]: local IP address 80.143.131.128
> Jun 24 10:28:22 localhost pppd[4397]: remote IP address 217.5.98.137
> Jun 24 10:28:22 localhost pppd[4397]: primary DNS address 217.237.151.225
> Jun 24 10:28:22 localhost pppd[4397]: secondary DNS address 194.25.2.129


Hmm the ppp link seems to be up and doing well, what do you get when you
ping 217.5.98.137 ?

> route:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 217.5.98.137 * 255.255.255.255 UH 0 0 0
> ppp0
> 10.0.1.0 * 255.255.255.0 U 0 0 0
> eth0
> 192.168.0.0 * 255.255.255.0 U 0 0 0
> eth2
> default 10.0.1.1 0.0.0.0 UG 0 0 0
> eth0

all packets that don't go to the 192.168.0.x subnet or the 217.5.98.137
host are routed through the 10.0.1.1 machine, what happens when you do a
# route add default gw 217.5.98.137
?
(maybe you first have to do a route del default gw ?) that way all
outbound traffic will be routed over the ppp connnection.

Sander.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modem Router Connections Jack Ouzzi Broadband 10 01-13-2006 01:46 PM
2 Broadband connections on 1 router Neil Cooper Broadband 3 11-10-2004 12:26 PM
Router for 64 only allows 4 connections femaleengineer Wireless Networks 2 11-09-2004 06:49 PM
Router with 2 internet connections J.Neuhoff Broadband 2 01-30-2004 08:40 PM
2 DSL connections and 1 ROUTER Rafa Linux Networking 4 01-15-2004 05:56 PM



1 2 3 4 5 6 7 8 9 10 11