[CORD-1305] PPPoE Client
Change-Id: Id5ae5ba0ce0cbb89d434fb34d4c42796c61c059e
diff --git a/extensions/pppoe/scripts/vcpe_proxy_ipv6_setup.sh b/extensions/pppoe/scripts/vcpe_proxy_ipv6_setup.sh
new file mode 100755
index 0000000..5f390a9
--- /dev/null
+++ b/extensions/pppoe/scripts/vcpe_proxy_ipv6_setup.sh
@@ -0,0 +1,53 @@
+#!/bin/bash
+#************************************************************/
+#** File: vcpe_proxy_ipv6_setup.sh */
+#** Contents: Contains shell script to setup VCPE IPv6 */
+#** environment and start apps */
+#************************************************************/
+echo "vcpe_proxy_ipv6_setup.sh: BEGIN" >/tmp/ipv6.log
+date >>/tmp/ipv6.log
+
+echo "stop dnsmasq" >>/tmp/ipv6.log
+sv down dnsmasq
+sv down dnsmasq-safe
+sleep 1
+
+ps -fade|grep dnsmasq >>/tmp/ipv6.log
+
+cd /home/ubuntu
+
+tar -xvf ipv6.tar
+
+echo "place conf files" >>/tmp/ipv6.log
+mv radvd.conf /etc/
+mv totd.conf /usr/local/etc/
+mv tayga.conf /usr/local/etc/
+
+ifconfig eth1 0.0.0.0
+ifconfig eth1 inet6 add 2001:468:181:f100::1/64 up
+sysctl -w net.ipv6.conf.all.forwarding=1
+
+echo "Setup NAT64 Tayga" >>/tmp/ipv6.log
+/home/ubuntu/tayga --mktun
+sleep 1
+ifconfig nat64 up
+ifconfig nat64 mtu 1442
+ip addr add 192.168.1.1 dev nat64
+ip addr add 2001:db8:1::1 dev nat64
+ip route add 192.168.255.0/24 dev nat64
+ip route add 2000:ffff::/96 dev nat64
+mkdir /var/db/
+mkdir /var/db/tayga
+
+ip6tables -A OUTPUT -p icmpv6 --icmpv6-type 1 -j DROP
+ip6tables -A FORWARD -d 2001:468:181:f100:: -j DROP
+
+echo "Start DHCPv6 radvd" >>/tmp/ipv6.log
+/etc/init.d/radvd start &
+sleep 1
+echo "Start NAT64 Tayga" >>/tmp/ipv6.log
+/home/ubuntu/tayga &
+sleep 1
+echo "Start DNS64 totd" >>/tmp/ipv6.log
+/home/ubuntu/totd &
+