美文网首页
eNSP六:GRE

eNSP六:GRE

作者: 沿哲 | 来源:发表于2020-09-15 09:12 被阅读0次
要配置的图

任务

  1. 在路由器AR1、AR3创建GRE隧道
  • 接口编号 tunnel 0/0/0
  • AR1侧GRE隧道地址200.1.1.1/24
  • AR2侧200.1.1.2/24
  1. 静态路由:
  • AR1访问右侧10.1.2.0网络,出接口tunnel 1/0/0
  • AR3访问左侧10.1.1.0网络,出接口tunnel 0/0/0
  1. 缺省路由
  • AR1下一跳100.1.12.2
  • AR3下 一跳 100.1.23.2

注:此处仅对AR3作详细说明,AR1配置与AR3对称;AR3仅需配置接口IP地址

AR3

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 100.1.23.3 24
Sep 10 2020 15:29:31-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R3-GigabitEthernet0/0/0]int g0/0/1
[R3-GigabitEthernet0/0/1]ip add 10.1.2.1 24
[R3-GigabitEthernet0/0/1]
Sep 10 2020 15:29:53-08:00 R3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R3-GigabitEthernet0/0/1]q
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 200.1.1.2 24
[R3-Tunnel0/0/0]tunnel-protocol gre
[R3-Tunnel0/0/0]source 100.1.23.3
[R3-Tunnel0/0/0]destination 100.1.12.1
[R3-Tunnel0/0/0]q
[R3]ip route-static 10.1.1.0 24 Tunnel 0/0/0
[R3]ip route-static 0.0.0.0 0 100.1.23.2

验证结果图

PC1 ping PC2d IP地址,可以通过就说明配置成功!


ping通

相关文章

网友评论

      本文标题:eNSP六:GRE

      本文链接:https://www.haomeiwen.com/subject/vigpektx.html