I have a 4-port Ethernet card (D-Link DFE-570TX - btw, tulip module) and use it for now with two ADSL connection and the internal LAN:
eth0 is the fixed connection via ADSL, with IP 61.219.255.186 eth1 is a PPPoE connection (ADSL), with a static IP 203.204.5.215 eth2 is not connected (reserved for the third line) eth3 is the internal LAN
I use SuSE Linux with kernel 2.4.6 rp-pppoe-3.3
adsl-status:
adsl-status: Link is up and running on interface ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:203.204.5.215 P-t-P:203.133.3.31 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:144 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3
ifconfig:
dummy0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 inet addr:61.219.255.186 Bcast:61.255.255.255 Mask:255.255.255.255 inet6 addr: fe80::200:ff:fe00:0/10 Scope:Link UP BROADCAST RUNNING NOARP MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
eth0 Link encap:Ethernet HWaddr 00:80:C8:B9:A1:A5 inet addr:61.219.255.186 Bcast:61.219.255.255 Mask:255.255.255.0 inet6 addr: fe80::280:c8ff:feb9:a1a5/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:46282 errors:2 dropped:0 overruns:0 frame:0 TX packets:45224 errors:8 dropped:0 overruns:0 carrier:8 collisions:0 txqueuelen:100 Interrupt:11 Base address:0x9800
eth1 Link encap:Ethernet HWaddr 00:80:C8:B9:A1:A6 inet6 addr: fe80::280:c8ff:feb9:a1a6/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:827 errors:2 dropped:0 overruns:0 frame:0 TX packets:937 errors:8 dropped:0 overruns:0 carrier:8 collisions:0 txqueuelen:100 Interrupt:10 Base address:0x9400
eth3 Link encap:Ethernet HWaddr 00:80:C8:B9:A1:A8 inet addr:192.168.250.254 Bcast:192.168.250.255 Mask:255.255.255.0 inet6 addr: fe80::280:c8ff:feb9:a1a8/10 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17641 errors:0 dropped:0 overruns:0 frame:0 TX packets:15566 errors:2 dropped:0 overruns:0 carrier:2 collisions:75 txqueuelen:100 Interrupt:5 Base address:0x8800
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:7744 errors:0 dropped:0 overruns:0 frame:0 TX packets:7744 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
ppp0 Link encap:Point-to-Point Protocol inet addr:203.204.5.215 P-t-P:203.133.3.31 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:145 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3
To test if the link via PPPoE works I added: route add -net 202.58.118.0 netmask 255.255.255.0 ppp0
netstat -rn:
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 203.133.3.31 0.0.0.0 255.255.255.255 UH 40 0 0 ppp0 61.219.255.186 0.0.0.0 255.255.255.255 UH 40 0 0 dummy0 202.58.118.0 0.0.0.0 255.255.255.0 U 40 0 0 ppp0 192.168.250.0 0.0.0.0 255.255.255.0 U 40 0 0 eth3 61.219.255.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo 0.0.0.0 61.219.255.254 0.0.0.0 UG 40 0 0 eth0
ping 202.58.118.12 (that is ftp.suse.com ;-) ) reports 100% loss, as well as traceroute (from the server) From the internal LAN I cannot test since the second firewall settings eth1:eth3 is not setup yet.
I am sure I just forgot something, but cannot find it!
Can anybody give me a hint please?
bye
Ronald
Ronald Wiplinger (ÃQ¤¯¯Ç), CEO, ELMIT - The Solution Provider Tel. +886 2 8809-7680, Fax. +886 2 2809-0183, Mobile: +886 915 653-452 Net2Phone:8869550066, ICQ: 111651169 http://www.elmit.com http://www.wiplinger.org