GRE实验

第一步配置ip

R1

[r1]int g0/0/0                              ^
[r1-GigabitEthernet0/0/0]ip address 
[r1-GigabitEthernet0/0/0]ip address 12.0.0.1 24
Apr 11 2024 15:10:05-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]qu

创建环回
[r1]int LoopBack 0
[r1-LoopBack0]ip address 192.168.1.1 24
配置缺省

[r1]ip route-static 0.0.0.0 0 12.0.0.2

创建隧道接口
[r1]interface Tunnel 0/0/0
[r1-Tunnel0/0/0]ip address 192.168.3.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre 
定义封装类容

[r1-Tunnel0/0/0]source 12.0.0.1
[r1-Tunnel0/0/0]destination 23.0.0.2
Apr 11 2024 15:43:37-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
 

ISP

[isp]int g0/0/0
[isp-GigabitEthernet0/0/0]ip ad    
[isp-GigabitEthernet0/0/0]ip address 12.0.0.2 24
Apr 11 2024 15:13:54-08:00 isp %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[isp-GigabitEthernet0/0/0]qu
[isp]int g0/0/1
[isp-GigabitEthernet0/0/1]ip address 23.0.0.1 24
Apr 11 2024 15:14:40-08:00 isp %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[isp-GigabitEthernet0/0/1]

R3

[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip ad    
[r3-GigabitEthernet0/0/0]ip address 23.0.0.2 24
Apr 11 2024 15:15:36-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]qu

创建环回   
[r3]int LoopBack 0
[r3-LoopBack0]ip ad    
[r3-LoopBack0]ip address 192.168.2.1 24

配置缺省

[r3]ip route-static 0.0.0.0 0 23.0.0.1
创建隧道接口

[r3]interface Tunnel 0/0/0
[r3-Tunnel0/0/0]ip address 192.168.3.2 24
[r3-Tunnel0/0/0]tun    

[r3-Tunnel0/0/0]tunnel-protocol g    
[r3-Tunnel0/0/0]tunnel-protocol gre 

定义封装类容
[r3-Tunnel0/0/0]source 23.0.0.2
[r3-Tunnel0/0/0]destination 12.0.0.1
Apr 11 2024 15:50:33-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
 

测试

  • 21
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值