您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页ensp配置GRE

ensp配置GRE

来源:化拓教育网

拓扑图

基本信息

名称IP地址子网掩码网关
Client1172.16.1.1255.255.255.0172.16.1.254
server1192.168.1.1255.255.255.0192.168.1.254
名称接口ip子网掩码
R1Ethernet 0/0/0172.16.1.254255.255.255.0
Ethernet 0/0/1100.100.100.1255.255.255.252
R2Ethernet 0/0/0100.100.100.2255.255.255.252
Ethernet 0/0/1200.200.200.1255.255.255.252
R3Ethernet 0/0/0200.200.200.2255.255.255.252
Ethernet 0/0/0192.168.1.254255.255.255.0

基本命令

R1

sys
sys R1
un in en
int e0/0/0
ip add 172.16.1.254 24
int e0/0/1
ip add 100.100.100.1 30
q
ip route-static 0.0.0.0 0 100.100.100.2

R2

sys
sys R2
un in en
int e0/0/0
ip add 100.100.100.2 30
int e0/0/1
ip add 200.200.200.1 30

R3

sys
sys R3
un in en
int e0/0/0
ip add 200.200.200.2 30
int e0/0/1
ip add 192.168.1.254 24
q
ip route-static 0.0.0.0 0 200.200.200.1

创建tunnel

R1

int tunnel 0/0/1
ip add 1.1.1.1 30
tunnel-protocol gre
source 100.100.100.1
destination 200.200.200.2
ip route-static 192.168.1.0 24 Tunnel 0/0/1

R3

int Tunnel 0/0/2
ip address 1.1.1.2 30
tunnel-protocol gre
source 200.200.200.2
destination 100.100.100.1
q
ip route-static 172.16.1.0 24 Tunnel 0/0/2

测试连通性

 抓包分析

 

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务