IPv6 and Linux (FTTC and PPPoE) - a tutorial

Started by alexwright, May 30, 2011, 12:20:33

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tomp

I have managed to get PPPoE and IPv6 working using a CentOS 6 box.

Here is how I did it:

yum install ppp rp-pppoe

Create /etc/sysconfig/network-scripts/ifcfg-ppp0

TYPE=xDSL
DEVICE=ppp0
PROVIDER=ppp0
USER=[Your IDNet Username]
ONBOOT=yes
DEMAND=no
USERCTL=no
PERSIST=no
PEERDNS=yes
DEFROUTE=yes
ETH=eth0
BOOTPROTO=dialup
FIREWALL=NONE
PING=.
PPPOE_TIMEOUT=20
LCP_INTERVAL=20
LCP_FAILURE=3
CONNECT_POLL=5
CONNECT_TIMEOUT=60
SYNCHRONOUS=no

#MTU and MSS based on this link
#http://www.webspaces.net.nz/page.php?view=draytek_modems
MTU=1492
CLAMPMSS=1440

IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
PIDFILE=/var/run/pppoe.pid
PPPD_EXTRA="ipv6 ,"
IPV6_DEFAULTDEV="ppp0"

Add line to /etc/ppp/chap-secrets

"[your IDNet Username]"     *   "[your IDNet password]"

Then run:

ifup ppp0

The ppp0 interface then gets your external IPv4 address, and a link-local IPv6 address.

To get your IPv6 traffic flowing you will need to add a proper IPv6 address to your internal LAN interface, e.g. eth1

E.g.

In /etc/sysconfig/network-scripts/icfg-eth1

IPV6INIT="yes"
IPV6ADDR="2a02...1::2/64"

I also added these settings to /etc/sysconfig/network

NETWORKING_IPV6=yes
IPV6_ROUTER=yes
IPV6FORWARDING=yes
IPV6_AUTOCONF=no
IPV6_AUTOTUNNEL=no

And for route advertisement, this file /etc/radvd.conf

interface eth1 {
        AdvSendAdvert on;
        AdvLinkMTU 1412;

        prefix 2a02...1::/64 {
                AdvOnLink on;
                AdvAutonomous on;
        };
};

That worked for me!  :)

Don't forget to setup a firewall using iptables and ip6tables though!