C模块配置
一、配置 OSPFv3:
· 先配置IPv6地址:
conf tipv6 unicast-routingint g1ipv6 address [IPv6地址]ipv6 address 2001:abcd:1000::ffff/64
1、HQ:
router ospfv3 1 //启动OSPFv3,进程号为 1 router-id 2.2.2.2 //手动指定 router-id(这里可以不配置)# 进入到要配置 OSPF的接口interface g1 ipv6 ospf 1 area 0 //将这个接口通告进 OSPFv3 进程1的区域0中 # 可选:(不选举DR、BDR) ipv6 ospf network point-to-point //将接口网络类型设置为点对点
2、ISP:
router ospfv3 1 router-id 1.1.1.1 # 进入要配置OSPF的接口interface g1 ipv6 ospf 1 area 0 ipv6 ospf network point-to-point interface g2 ipv6 ospf 1 area 1 ipv6 ospf network point-to-point
3、BRANCH:
router ospfv3 1 router-id 3.3.3.3# 进入要配置OSPF的接口interface G2 ipv6 ospf 1 area 1 ipv6 ospf network point-to-point
· 查看邻居关系:
do show ipv6 ospf nei
二、配置 IPv6 - EIGRP
路由器上可以配置IPv6的EIGRP,防火墙上不行,防火墙只能够配置IPv4的
1、配置 HQ:
ipv6 router eigrp 65000router-id 10.10.10.10 //一定要配置 router-id 才能够成功建立邻居no auexitint g0/1ipv6 enable //这条命令是可选的,开不开都可以ipv6 router eigrp 65000
2、配置BRANCH:
ipv6 router eigrp 65000router-id 20.20.20.20 //一定要配置 router-id 才能够成功建立邻居no auexitint g0/1ipv6 enable //这条命令是可选的,开不开都可以ipv6 router eigrp 65000
· 查看 eigrp IPv6 邻居关系:
do show eigrp add ipv6 nei
三、配置 IPv6 GRE Tunnel 隧道:
1、HQ:
interface tunnel 0 ip address 10.255.255.1 255.255.255.252 ipv6 enable tunnel source GigabitEthernet 4 //指定源端口 tunnel destination 2001:ABCD:2000::1 //指定对端的地址 tunnel mode gre ipv6
2、BRANCH:
interface tunnel 0 ip address 10.255.255.2 255.255.255.252 ipv6 enable
tunnel source GigabitEthernet2
tunnel destination 2001:ABCD:1000::1 tunnel mode gre ipv6