IPV6 GRE 静态隧道

IPV6 GRE

需知:

1:公网是IPV4 ,私网是IPV6;
2:GRE支持OSPFv3 路由协议;

一、基本配置

1、ZB配置
[ZB-GigabitEthernet0/1]ip   address  10.1.1.1  30
[ZB-GigabitEthernet0/0]ipv6  address  1000::1 64
[ZB]ip route-static  0.0.0.0   0  10.1.1.2
2、ISP配置
[ISP-GigabitEthernet0/1]ip address  10.1.1.2  30
[ISP-GigabitEthernet0/2]ip  address  20.1.1.1 30
3、FB配置
[FB-GigabitEthernet0/2]ip address  20.1.1.2 30
[FB-GigabitEthernet0/0]ipv6  address  2000::1 64
[FB]ip route-static 0.0.0.0 0 20.1.1.1

二、IPV6 GRE

1、ZB配置
[ZB]int  Tunnel 1 mode     gre 
[ZB-Tunnel1]source   10.1.1.1 
[ZB-Tunnel1]destination  20.1.1.2
[ZB-Tunnel1]ipv6  address   100::1  64
2、FB配置
[FB]int  Tunnel 1 mode  gre
[FB-Tunnel1]source  20.1.1.2
[FB-Tunnel1]destination  10.1.1.1
[FB-Tunnel1]ipv6  address  100::2 64

三、OSPF v3 配置

1、ZB配置
[ZB]ospfv3 
[ZB-ospfv3-1]router-id  1.1.1.1
[ZB-Tunnel1]ospfv3  1 area  0 
[ZB-GigabitEthernet0/0]ospfv3 1 area  0 
2、FB配置
[FB]ospfv3 
[FB-ospfv3-1]router-id  1.1.1.2
[FB-Tunnel1]ospfv3  1 area  0 
[FB-GigabitEthernet0/0]ospfv3 1 area  0