一、实验拓扑: 实验要求: 1、R2、R4之间建立Tunnel隧道:部署Tunnel隧道地址、源目地址; 2、R2、R4 BGP进程下:指定Tunnel邻居、Tunnel更新源、Tunnel下一跳。 3、验证:R1#ping 5.5.5.5是否可通。 二、命令部署: 1、R3关闭对等体组peer-group R3(config)#router bgp 24 R3(config-router)#neighbor pl shutdown

2、R2、R4建立Tunnel隧道 R2(config)#interface tunnel 2 R2(config-if)#ip add 24.1.1.2 255.255.255.0 R2(config-if)#tunnel source 2.2.2.2 R2(config-if)#tunnel destination 4.4.4.4

R4(config)#interface tunnel 4 R4(config-if)#ip add 24.1.1.4 255.255.255.0 R4(config-if)#tunnel source 4.4.4.4 R4(config-if)#tunnel destination 2.2.2.2

3、R2、R4 BGP进程下:指定邻居、更新源、下一跳 R2(config)#router bgp 24 R2(config-router)#neighbor 24.1.1.4 remote-as 24 R2(config-router)#neighbor 24.1.1.4 update-source tunnel 2 R2(config-router)#neighbor 24.1.1.4 next-hop-self

R4(config)#router bgp 24 R4(config-router)#neighbor 24.1.1.2 remote-as 24 R4(config-router)#neighbor 24.1.1.2 update-source tunnel 4 R4(config-router)#neighbor 24.1.1.2 next-hop-self

三、验证: R1#ping 5.5.5.5 //通