VPP GRE测试
隧道内层: 172.16.1.1 172.16.0.2
隧道外层: 4.4.4.1 4.4.4.3
vpp1<-------------------------------------->vpp2
1. 配置物理接口直连互通
vpp1:
show int addr
set interface ip addr GigabitEthernet13/0/0 4.4.4.1/24
set interface state GigabitEthernet13/0/0 up
vpp2:
show int addr
set interface ip addr GigabitEthernet13/0/0 4.4.4.3/24
set interface state GigabitEthernet13/0/0 up
2. 创建gre隧道并配置隧道外层ip
vpp1:
create gre tunnel src 4.4.4.1 dst 4.4.4.3
set interface ip addr gre0 172.16.1.1/24
set interface state gre0 up
vpp2:
create gre tunnel src 4.4.4.3 dst 4.4.4.1
set interface ip addr gre0 172.16.0.2/24
set interface state gre0 up
3. 创建路由
vpp1:
ip route add 0.0.0.0/0 via gre0
vpp2:
ip route add 0.0.0.0/0 via gre0
网友评论