----- "Paco Alcantara" <[EMAIL PROTECTED]> wrote: > .- I am looking for PPPoE commands are I cannot find them. Any help?? > Well I have seen the commands in the documentation but when I try to > configure the interface > > "set interfaces ethernet eth0 " the next item that could be "pppoe" is not > available. Where is my error??
Hi Paco -- Here's an example of configuring PPPOE on Glendale Alpha 2: vyatta:~# show version Version : vc4.0.0 Built by: [EMAIL PROTECTED] Built on: Tue Feb 26 02:48:23 UTC 2008 Build ID: 0802260248e2da7ea Boot via: disk Uptime : 11:21:58 up 6 min, 1 user, load average: 0.04, 0.31, 0.20 vyatta:~# configure [edit] [EMAIL PROTECTED] set interfaces ethernet eth3 pppoe 7 [edit] [EMAIL PROTECTED] set interfaces ethernet eth3 pppoe 7 user-id [EMAIL PROTECTED] [edit] [EMAIL PROTECTED] set interfaces ethernet eth3 pppoe 7 password yyyyyyyy [edit] [EMAIL PROTECTED] commit [edit] [EMAIL PROTECTED] save Saving configuration to '/opt/vyatta/etc/config/config.boot'... Done [edit] [EMAIL PROTECTED] exit exit vyatta:~# show interfaces pppoe pppoe7: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 100 link/ppp inet 76.200.163.135 peer 151.164.184.125/32 scope global pppoe7 RX: bytes packets errors dropped overrun mcast 64 4 0 0 0 0 TX: bytes packets errors dropped carrier collisions 241 8 0 0 0 0 vyatta:~# Note that there is a bug in Glendale Alpha 2 that will prevent the PPPOE link from coming up once configured. Fortunately, the fix is a one-line change to the PPPOE configuration template. You can make the fix by editing the file: /opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/pppoe/node.def Change the line that reads: sudo sh -c "echo pty \"/usr/sbin/pppoe -m 1412 -I $VAR(../@)\" >> \ to instead read: sudo sh -c "echo pty \\\"/usr/sbin/pppoe -m 1412 -I $VAR(../@)\\\" >> \ I.e. there need to be three backslash characters before the second and third quote character. After you have made that change, reboot your system, and PPPOE should work as expected. This fix has been checked into the source tree and will be in our next Glendale release, BTW. If the link doesn't come up, you can use tcpdump on the ethernet interface to troubleshoot, e.g.: vyatta:~# tcpdump -n -e -i eth3 Note also that we have a command to force the link down,e,g: vyatta:~# set interface pppoe pppoe7 down Bringing PPPOE interface pppoe7 down vyatta:~# and a command to bring the link back up: vyatta:~# set interface pppoe pppoe7 up Bringing PPPOE interface pppoe7 up. vyatta:~# Bringing the link down and back up re-starts the PPPOE protocol exchange from scratch, so my usual troubleshooting technique is to run tcpdump on the ethernet interface, then bring the PPPOE link down and back up, then watch the protocol exchanges. I hope that helps! Bob. _______________________________________________ Vyatta-users mailing list Vyatta-users@mailman.vyatta.com http://mailman.vyatta.com/mailman/listinfo/vyatta-users