和其他路由配置相比,静态路由配置还是比较复杂的,同时静态路由配置中也有关于IPv6方面的设置,于是我研究了一下静态路由配置的详细语句,在这里拿出来和大家分享一下,希望对大家有用。
- enable ipforwarding ipv6 vlan Default
- enable ipforwarding ipv6 vlan lo0
- enable ipforwarding ipv6 vlan ipv4-bd
- configure vlan v6to7507 ipaddress ipv6 link-local
- configure vlan v6to7507 ipaddress ipv6 3ffe:2315:1001:1001::2 / 124
- enable ipforwarding ipv6 vlan v6to7507
- create tunnel toy1 ipv6-in-ipv4 destination 11.18.32.254 source 10.12.0.129
- create tunnel toMHNoc ipv6-in-ipv4 destination 10.12.58.254 source 10.12.0.129
- create tunnel toXHLib ipv6-in-ipv4 destination 10.12.13.222 source 10.12.0.129
- create tunnel toFYBuild ipv6-in-ipv4 destination 11.18.38.254 source 10.12.0.129
- create tunnel toXinJian ipv6-in-ipv4 destination 10.12.1.254 source 10.12.0.129
- create tunnel toDongHua ipv6-in-ipv4 destination 10.12.144.14 source 10.12.0.129
- create tunnel totest ipv6-in-ipv4 destination 10.12.58.115 source 10.12.0.129
- configure tunnel toy1 ipaddress ipv6 link-local
- configure tunnel toy1 ipaddress ipv6 3ffe:2315:1001:1001::16 / 124
- enable ipforwarding ipv6 tunnel toy1
- configure tunnel toMHNoc ipaddress ipv6 link-local
- configure tunnel toMHNoc ipaddress ipv6 3ffe:2315:1001:1001::32 / 124
- enable ipforwarding ipv6 tunnel toMHNoc
- configure tunnel toXHLib ipaddress ipv6 link-local
- configure tunnel toXHLib ipaddress ipv6 3ffe:2315:1001:1001::48 / 124
- enable ipforwarding ipv6 tunnel toXHLib
- configure tunnel toFYBuild ipaddress ipv6 link-local
- configure tunnel toFYBuild ipaddress ipv6 3ffe:2315:1001:1001::64 / 124
- enable ipforwarding ipv6 tunnel toFYBuild
- configure tunnel toXinJian ipaddress ipv6 link-local
- configure tunnel toXinJian ipaddress ipv6 3ffe:2315:1001:1001::80 / 124
- enable ipforwarding ipv6 tunnel toXinJian
- configure tunnel toDongHua ipaddress ipv6 link-local
- configure tunnel toDongHua ipaddress ipv6 3ffe:2315:1001:1001::96 / 124
- enable ipforwarding ipv6 tunnel toDongHua
- configure tunnel totest ipaddress ipv6 link-local
- configure tunnel totest ipaddress ipv6 3ffe:2315:1001:1001::a6 / 124
- enable ipforwarding ipv6 tunnel totest
- configure iproute add ipv6 default 3ffe:2315:1001:1001::1
- configure iproute add ipv6 2001:520:6000:100a:: / 64 3ffe:2315:1001:1001::81
- configure iproute add ipv6 3ffe:2315:1001:1002:: / 64 3ffe:2315:1001:1001::17
- configure iproute add ipv6 3ffe:2315:1001:100d:: / 64 3ffe:2315:1001:1001::49
- configure iproute add ipv6 3ffe:2315:1001:5001:: / 64 3ffe:2315:1001:1001::33
- configure iproute add ipv6 3ffe:2315:1001:f001:: / 64 3ffe:2315:1001:1001::65
- configure neighbor-discovery ipv6 cache timeout 600
……