Native IPv6 with Internode and CentOS
By Phil on Thursday, February 10 2011, 23:32 - Interwebs - Permalink
This is a WIP. Notes so far.
At the moment, this results in an error from DHCPv6 Client when trying to assign an addrss to ppp200:
Feb 10 23:28:50 tank dhcp6c[1063]: transmit failed: Network is unreachable
Manually adding an address makes it work:
Feb 10 23:28:47 tank dhcp6c[1382]: request prefix is 2001:44b8:7206:d180::/60
# ip -6 a a 2001:44b8:7206:d180::1/48 dev ppp200 # ping6 2001:44b8:1::6 PING 2001:44b8:1::6(2001:44b8:1::6) 56 data bytes 64 bytes from 2001:44b8:1::6: icmp_seq=0 ttl=59 time=27.8 ms 64 bytes from 2001:44b8:1::6: icmp_seq=1 ttl=59 time=27.3 ms 64 bytes from 2001:44b8:1::6: icmp_seq=2 ttl=59 time=27.6 ms
# cat /etc/ppp/options lock ipv6 ,
# cat /etc/ppp/ipv6-up.local #!/bin/sh LOGDEVICE=$6 /sbin/dhcp6c -d ppp200
# chmod 755 /etc/ppp/ipv6-up.local
# cat /etc/dhcp6c.conf interface ppp200 { send rapid-commit; request domain-name-servers; request prefix-delegation; };
# grep IPV6 /etc/sysconfig/network NETWORKING_IPV6=yes IPV6_DEFAULTDEV="ppp200"
# cat /etc/sysconfig/network-scripts/ifcfg-ppp200 USERCTL=yes BOOTPROTO=dialup DEVICE=ppp200 ETH=eth0 TYPE=xDSL ONBOOT=yes FIREWALL=NONE PING=. CLAMPMSS=1400 DEFROUTE=yes SYNCHRONOUS=no PROVIDER=DSLppp0 PEERDNS=no DEMAND=no DNSTYPE=NOCHANGE # IPv6 Configurations USER=(redacted)@ipv6.internode.on.net IPV6INIT=yes CF_BASE=`basename $CONFIG` PIDFILE="/var/run/$CF_BASE-adsl.pid" # PPPoE Config PPPOE_TIMEOUT=300 PPPOE_EXTRA="" LCP_FAILURE=3 LCP_INTERVAL=10 # PPPD Config PPPD_EXTRA="unit 200" CONNECT_TIMEOUT=30 CONNECT_POLL=6
Added following information (110516)
tank ~ # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 188.40.2.187 10.206.206.5 255.255.255.255 UGH 0 0 0 tun0 203.16.215.204 0.0.0.0 255.255.255.255 UH 0 0 0 ppp200 10.206.206.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 10.206.206.1 10.206.206.5 255.255.255.255 UGH 0 0 0 tun0 59.167.124.216 0.0.0.0 255.255.255.248 U 0 0 0 bond0.300 192.168.31.96 0.0.0.0 255.255.255.248 U 0 0 0 bond0.400 192.168.254.0 0.0.0.0 255.255.255.248 U 0 0 0 eth0 192.168.31.224 0.0.0.0 255.255.255.240 U 0 0 0 bond0.200 192.168.31.240 0.0.0.0 255.255.255.240 U 0 0 0 bond0.100 192.168.235.192 0.0.0.0 255.255.255.240 U 0 0 0 bond0.300 192.168.31.0 0.0.0.0 255.255.255.224 U 0 0 0 bond0 172.27.24.0 10.206.206.5 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp200
tank ~ # ifconfig -a bond0 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 inet addr:192.168.31.1 Bcast:192.168.31.31 Mask:255.255.255.224 inet6 addr: fe80::20a:5eff:fe52:e1c3/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:173221488 errors:0 dropped:0 overruns:0 frame:0 TX packets:185294727 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1379557404 (1.2 GiB) TX bytes:185864804 (177.2 MiB) bond0.100 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 inet addr:192.168.31.254 Bcast:192.168.31.255 Mask:255.255.255.240 inet6 addr: fe80::20a:5eff:fe52:e1c3/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:91944647 errors:0 dropped:0 overruns:0 frame:0 TX packets:55292220 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:767508336 (731.9 MiB) TX bytes:4293493827 (3.9 GiB) bond0.200 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 inet addr:192.168.31.238 Bcast:192.168.31.239 Mask:255.255.255.240 inet6 addr: fe80::20a:5eff:fe52:e1c3/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:1936434 errors:0 dropped:0 overruns:0 frame:0 TX packets:1655338 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:92817782 (88.5 MiB) TX bytes:144951300 (138.2 MiB) bond0.300 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 inet addr:59.167.124.222 Bcast:59.167.124.223 Mask:255.255.255.248 inet6 addr: fe80::20a:5eff:fe52:e1c3/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:4685067 errors:0 dropped:0 overruns:0 frame:0 TX packets:4478417 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1247672355 (1.1 GiB) TX bytes:1024145683 (976.7 MiB) bond0.300:1 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 inet addr:192.168.235.200 Bcast:192.168.235.207 Mask:255.255.255.240 UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 bond0.400 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 inet addr:192.168.31.97 Bcast:192.168.31.103 Mask:255.255.255.248 inet6 addr: fe80::20a:5eff:fe52:e1c3/64 Scope:Link UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:620 (620.0 b) eth0 Link encap:Ethernet HWaddr 00:50:FC:AA:71:D6 inet addr:192.168.254.3 Bcast:192.168.254.7 Mask:255.255.255.248 inet6 addr: fe80::250:fcff:feaa:71d6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:37575818 errors:2227 dropped:12177 overruns:1039 frame:0 TX packets:24189207 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1648486133 (1.5 GiB) TX bytes:2701026933 (2.5 GiB) Interrupt:201 Base address:0x2000 eth1 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:173108125 errors:0 dropped:0 overruns:0 frame:0 TX packets:185294727 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1370898747 (1.2 GiB) TX bytes:185864804 (177.2 MiB) Interrupt:185 Memory:df000000-df010000 eth2 Link encap:Ethernet HWaddr 00:0A:5E:52:E1:C3 UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1 RX packets:113363 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8658657 (8.2 MiB) TX bytes:0 (0.0 b) Interrupt:193 Memory:df010000-df020000 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:102706 errors:0 dropped:0 overruns:0 frame:0 TX packets:102706 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:18571969 (17.7 MiB) TX bytes:18571969 (17.7 MiB) ppp200 Link encap:Point-to-Point Protocol inet addr:150.101.xxx.xxx P-t-P:203.16.215.204 Mask:255.255.255.255 inet6 addr: fe80::b57d:7875:7182:914e/10 Scope:Link UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:312713 errors:0 dropped:0 overruns:0 frame:0 TX packets:253495 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:254434834 (242.6 MiB) TX bytes:25002935 (23.8 MiB) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 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) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.206.206.6 P-t-P:10.206.206.5 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:675 errors:0 dropped:0 overruns:0 frame:0 TX packets:729 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:96466 (94.2 KiB) TX bytes:49763 (48.5 KiB)