Script that build Dual Stack route

#!/bin/sh
modprobe ipv6
echo 1 >  /proc/sys/net/ipv6/conf/all/forwarding

# start pppoe server
# pppoe-server -I eth0 -L 192.134.55.1 -R 192.134.55.2

ip -6 a a 2001:470:1f05:1553::200 dev eth1 

ip -6 route add 2001:470:8637:e000::/60 via fe80::428b:7ff:fee0:585 dev eth0
ip -6 route add 2001:470:8637:4444::/64 via fe80::428b:7ff:fee0:585 dev eth0

#add default route 
ip -6 r a default via fe80::21f:d0ff:fe67:a88d dev eth1

你可能感兴趣的:(Script that build Dual Stack route)