MSR路由器分别使用接口IP和sub ip与对端建立两条GRE隧道
配置:
MSR1:
interface Tunnel0 mode gre
ip address 2.2.2.1 255.255.255.0
source 1.1.1.1
destination 2.1.1.2
#
interface Tunnel1 mode gre
ip address 3.2.2.2 255.255.255.0
source 1.1.1.2
destination 3.1.1.2
ip route-static 3.3.3.3 32 Tunnel0
ip route-static 4.4.4.4 32 Tunnel1
MSR2:
interface Tunnel0 mode gre
ip address 2.2.2.3 255.255.255.0
source 2.1.1.2
destination 1.1.1.1
ip route-static 5.5.5.5 32 Tunnel0
MSR3:
interface Tunnel1 mode gre
ip address 3.2.2.4 255.255.255.0
source 3.1.1.2
destination 1.1.1.2
ip route-static 5.5.5.5 32 Tunnel1
结果验证:
<H3C>display interface Tunnel
Tunnel0
Current state: UP
Line protocol state: UP
Description: Tunnel0 Interface
Bandwidth: 64 kbps
Maximum transmission unit: 1476
Internet address: 2.2.2.1/24 (primary)
Tunnel source 1.1.1.1, destination 2.1.1.2
Tunnel keepalive disabled
Tunnel TTL 255
Tunnel protocol/transport GRE/IP
GRE key disabled
Checksumming of GRE packets disabled
Output queue - Urgent queuing: Size/Length/Discards 0/100/0
Output queue - Protocol queuing: Size/Length/Discards 0/500/0
Output queue - FIFO queuing: Size/Length/Discards 0/75/0
Last clearing of counters: Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Input: 5 packets, 420 bytes, 0 drops
Output: 5 packets, 420 bytes, 0 drops
Tunnel1
Current state: UP
Line protocol state: UP
Description: Tunnel1 Interface
Bandwidth: 64 kbps
Maximum transmission unit: 1476
Internet address: 3.2.2.2/24 (primary)
Tunnel source 1.1.1.2, destination 3.1.1.2
Tunnel keepalive disabled
Tunnel TTL 255
Tunnel protocol/transport GRE/IP
GRE key disabled
Checksumming of GRE packets disabled
Output queue - Urgent queuing: Size/Length/Discards 0/100/0
Output queue - Protocol queuing: Size/Length/Discards 0/500/0
Output queue - FIFO queuing: Size/Length/Discards 0/75/0
Last clearing of counters: Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Input: 10 packets, 840 bytes, 0 drops
Output: 10 packets, 840 bytes, 0 drops
该案例对您是否有帮助:
您的评价:1
若您有关于案例的建议,请反馈:
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作