eNSP六:GRE

2020-09-15  本文已影响0人  沿哲
要配置的图

任务

  1. 在路由器AR1、AR3创建GRE隧道
  1. 静态路由:
  1. 缺省路由

注:此处仅对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通
上一篇 下一篇

猜你喜欢

热点阅读