GRE实验
2016-04-21 20:54
471 查看
路由封装协议GRE实验
GRE(Generic Routing Encapsulation)即通用路由封装协议,是对某些网络层协议(如IP和IPX)的数据报进行封装,使这些被封装的数据报能够在另一个网络层协议(如IP)中传输一.实验拓扑
二.设置
R1:
interfaceFastEthernet0/0
ip address61.130.130.1 255.255.255.252
interfaceFastEthernet0/1
ip address192.168.1.254 255.255.255.0
interface Tunnel10
ip address192.168.4.1 255.255.255.0
tunnel sourceFastEthernet0/0
tunnel destination61.130.132.1
ip classless
ip route 0.0.0.00.0.0.0 61.130.130.2
ip route192.168.2.0 255.255.255.0 192.168.4.2
R2:
interface FastEthernet0/0
ip address61.130.130.2 255.255.255.252
interfaceFastEthernet0/1
ip address 61.130.132.2255.255.255.252
R3:
interface FastEthernet0/0
ip address 61.130.132.1 255.255.255.252
interface FastEthernet0/1
ip address 192.168.2.254 255.255.255.0
interface Tunnel20
ip address 192.168.4.2 255.255.255.0
tunnel source FastEthernet0/0
tunnel destination 61.130.130.1
ip classless
ip route 0.0.0.0 0.0.0.0 61.130.132.2
ip route 192.168.1.0 255.255.255.0192.168.4.1
三.检查结果
R1:
1. 查看路由表:r1#show ip route
Codes: C - connected, S - static, I - IGRP,R - RIP, M - mobile, B - BGP
Gateway of last resort is 61.130.130.2 tonetwork 0.0.0.0
61.0.0.0/30 is subnetted, 1 subnets
C 61.130.130.0 is directly connected, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
S 192.168.2.0/24 [1/0] via 192.168.4.2
C 192.168.4.0/24 is directly connected, Tunnel10
S* 0.0.0.0/0 [1/0] via 61.130.130.2
2. 查看tunnel接口r1#show interface tunnel 10
Tunnel10 is up, line protocol is up(connected)
Hardware is Tunnel
Internet address is 192.168.4.1/24
MTU17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 61.130.130.1 (FastEthernet0/0), destination 61.130.132.1
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255
Fast tunneling enabled
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5minute input rate 0 bits/sec, 0 packets/sec
5minute output rate 0 bits/sec, 0 packets/sec
26 packets input, 3328 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
42 packets output, 5376 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
四.测试结果:
Pc1:
PC2:
GRE(Generic Routing Encapsulation)即通用路由封装协议,是对某些网络层协议(如IP和IPX)的数据报进行封装,使这些被封装的数据报能够在另一个网络层协议(如IP)中传输一.实验拓扑
二.设置
R1:
interfaceFastEthernet0/0
ip address61.130.130.1 255.255.255.252
interfaceFastEthernet0/1
ip address192.168.1.254 255.255.255.0
interface Tunnel10
ip address192.168.4.1 255.255.255.0
tunnel sourceFastEthernet0/0
tunnel destination61.130.132.1
ip classless
ip route 0.0.0.00.0.0.0 61.130.130.2
ip route192.168.2.0 255.255.255.0 192.168.4.2
R2:
interface FastEthernet0/0
ip address61.130.130.2 255.255.255.252
interfaceFastEthernet0/1
ip address 61.130.132.2255.255.255.252
R3:
interface FastEthernet0/0
ip address 61.130.132.1 255.255.255.252
interface FastEthernet0/1
ip address 192.168.2.254 255.255.255.0
interface Tunnel20
ip address 192.168.4.2 255.255.255.0
tunnel source FastEthernet0/0
tunnel destination 61.130.130.1
ip classless
ip route 0.0.0.0 0.0.0.0 61.130.132.2
ip route 192.168.1.0 255.255.255.0192.168.4.1
三.检查结果
R1:
1. 查看路由表:r1#show ip route
Codes: C - connected, S - static, I - IGRP,R - RIP, M - mobile, B - BGP
Gateway of last resort is 61.130.130.2 tonetwork 0.0.0.0
61.0.0.0/30 is subnetted, 1 subnets
C 61.130.130.0 is directly connected, FastEthernet0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
S 192.168.2.0/24 [1/0] via 192.168.4.2
C 192.168.4.0/24 is directly connected, Tunnel10
S* 0.0.0.0/0 [1/0] via 61.130.130.2
2. 查看tunnel接口r1#show interface tunnel 10
Tunnel10 is up, line protocol is up(connected)
Hardware is Tunnel
Internet address is 192.168.4.1/24
MTU17916 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 61.130.130.1 (FastEthernet0/0), destination 61.130.132.1
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255
Fast tunneling enabled
Tunnel transport MTU 1476 bytes
Tunnel transmit bandwidth 8000 (kbps)
Tunnel receive bandwidth 8000 (kbps)
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5minute input rate 0 bits/sec, 0 packets/sec
5minute output rate 0 bits/sec, 0 packets/sec
26 packets input, 3328 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 input packets with dribble condition detected
42 packets output, 5376 bytes, 0 underruns
0 output errors, 0 collisions, 0 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
四.测试结果:
Pc1:
PC2:
相关文章推荐
- FPGA第四篇:异步串口的实现
- plug-in app 的重构和java中功能选项的移除指南(一)
- dubbo底层NIO介绍
- Python框架之Tornado(一)
- KVO和KVC的关系
- CodeForces 665E Beautiful Subarrays(Trie)
- 一个自己开发的简单,快速,方便,小巧的php web框架
- 安卓界面里面弹出“关于我们”的说明代码实现
- 死锁问题
- HNOI模拟 2016.3.31 百步穿杨
- PHP中的验证码类(验证码功能设计之一)
- 第一冲刺阶段——站立会议第四天4月21日
- 学习.NET Winform开发 - 演示文件读写
- Python框架之Tornado(一)
- PowerShell调用jira rest api实现jira统计自动化
- 未来攻城师
- linux命令(9)---whereis、whatis、which命令
- 51CTO博客中直接粘贴截图的方法
- JavaScript正则表达式下——相关方法
- 全渠道-零售门店转型方案初探 (一)