Well, you don' t put the WAN IP on eth1... you don't even have to give eth1 an IP if you dont want to...
If you '
apt-get install pppoe' it will install pppoe, and should also generate an /etc/ppp/peers/dsl-provider file. If you have a look at this file there'll be a line like :
pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
So this is where you specify the interface your LLC packets will be sent out. It doesn't matter what IP this interface has, or if it even has an IP, it just needs to be up. ie: my /etc/network/interfaces file just contains :
auto lo
iface lo inet loopback
auto eth0 eth1
iface eth0 inet static
address 210.x.x.1
netmask 255.255.255.240
network 210.x.x.0
The only reason for having an IP on eth1 will be to talk directly to the ADSL, like so :
# uncomment this to talk directly to the netcomm
#iface eth1 inet static
# address 192.168.1.2
# netmask 255.255.255.0
# broadcast 192.168.1.255
# network 192.168.1.0
Putting your ADSL router into bridging mode should just have it pass through whatever packets it sees on each interface transparently. Not sure why it needs that config information, but I guess if you have to fill it in, then maybe these settings (you might need to play with them to get it working) :
Route #: 1
Route Name= debian box
Active= yes
Ether Address= aa:bb:cc:dd:ee:ff
IP Address= 81.xxx.xxx.203
Gateway Node= 1
back to the pppoe stuff, a config like this should be okay for you (just create a new /etc/ppp/peers/dsl-provider file and backup the dpkg one) :
#################################################################
# Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
#
# See the manual page pppd(8) for information on all the options.
user
myusername@myprovider.net
pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
noipdefault
defaultroute
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
connect /bin/true
noauth
persist
#################################################################
in /etc/ppp/options maybe uncomment 'debug' and set a 'kdebug' level so you can diagnose any problems.
just plug your username/password in (if required) into your /etc/ppp/pap-secrets or chap-secrets file so it uses the correct authentication. (ie: where I've put
myusername@myprovider.net, put in your own username, and then specify the password in the secrets file).
Have a look through the ppp documentation to see if there's anything else you might want to do, but this basic setup should get it working, on the proviso that the DSL router will bridge the way its meant to.
btw. to start and stop the pppoe dialer, just type in 'pon {peersfilename}' or 'poff {peersfilename}' ... so 'pon dsl-provider' by default etc. If it works, then add it to your ppp startup script in /etc/init.d/.
If everything works as expected, you should have an interface list something like this (substituting my IP's for yours, obviously
:
eth0 Link encap:Ethernet HWaddr 00:40:95:07:1E:0C
inet addr:210.x.x.1 Bcast:210.x.x.15 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:216346 errors:0 dropped:0 overruns:0 frame:0
TX packets:280106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:59486081 (56.7 MiB) TX bytes:274249330 (261.5 MiB)
Interrupt:11 Base address:0xc400
eth1 Link encap:Ethernet HWaddr 00:48:54:1D:A6:C6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:181404 errors:0 dropped:0 overruns:0 frame:0
TX packets:184239 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:156260960 (149.0 MiB) TX bytes:36648573 (34.9 MiB)
Interrupt:10 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:23128 errors:0 dropped:0 overruns:0 frame:0
TX packets:23128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13193407 (12.5 MiB) TX bytes:13193407 (12.5 MiB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:210.x.x.69 P-t-P:210.x.x.7 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:43271 errors:0 dropped:0 overruns:0 frame:0
TX packets:43928 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:41109018 (39.2 MiB) TX bytes:5220098 (4.9 MiB)
and a routing table something like :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
210.x.x.7 * 255.255.255.255 UH 0 0 0 ppp0
210.x.x.0 * 255.255.255.240 U 0 0 0 eth0
default 210.x.x.7 0.0.0.0 UG 0 0 0 ppp0
good luck