
实验需求:
IOU8访问IOU9,需要这么走:IOU8->IOU1->IOU3->IOU5->IOU6->IOU7->IOU6->IOU5->IOU4->IOU2->IOU9
实验环境:
操作系统:Mac OS X 10.11.4 beta 5(当时最新测试版),模拟器:GNS3 IOU for Mac 1.4.4(当时最新版本)
注:当然,只要有思科模拟器都可以做这个实验
思路:
- 这个需求主要使用RT值来控制路由。
- IOU6导出一个0:0,导入一个12:12,然后IOU3和IOU4均导入0:0,R4导出12:12。
- 然后IOU7下发默认路由,这样默认路由就通过0:0分别到达了IOU1和IOU2,所以IOU1和IOU2的数据包都会发往中心站点IOU7。
- 因为IOU7都有这两个分支站点的路由,所以能帮助这两个分支站点传递数据包。
实验步骤:(PC上观看效果更佳)
1、配置IP地址和Lo 0口:
IOU1:
int e 0/0 int e 0/1 int l 0 |
IOU2:
int e 0/0 int e 0/1 int l 0 |
IOU3:
int e 0/0 int e 0/2 int l 0 |
IOU4:
int e 0/0 int e 0/1 int l 0 |
IOU5:
int e 0/2 int e 0/1 int e 0/0 int l 0 |
IOU6:
int e 0/1 int e 0/0 int l 0 |
IOU7:
int e 0/1 int l 0 |
IOU8:
int e 0/1 int l 0 |
IOU9:
int e 0/1 int l 0 |
2、配置OSPF 3456:
IOU3:
router ospf 3456 int r e 0/2 , l 0 |
IOU4:
router ospf 3456 int r e 0/1 , l 0 |
IOU5:
router ospf 3456 int r e 0/0-2 , l 0 |
IOU6:
router ospf 3456 int r e 0/0 , l 0 |
3、配置MPLS:
IOU3:
ip cef int e 0/2 |
IOU4:
ip cef int e 0/1 |
IOU5:
ip cef int r e 0/0-2 |
IOU6:
ip cef int e 0/0 |
4、配置VRF:
IOU3:
ip vrf IOU1 int e 0/0 |
IOU4:
ip vrf IOU2 int e 0/0 |
IOU6:
ip vrf IOU7 int e 0/1 |
5、开启MP-BGP:
IOU3:
router bgp 3456 |
IOU4:
router bgp 3456 |
IOU5:
router bgp 3456 |
IOU6:
router bgp 3456 |
6、配置PE:
IOU3:
router eigrp 138 router bgp 3456 |
IOU4:
router eigrp 249 router bgp 3456 |
IOU6:
router bgp 3456 |
7、配置CE:
IOU1:
router eigrp 138 |
IOU8: router eigrp 138 no au net 8.8.8.8 0.0.0.0 net 18.1.1.8 0.0.0.0 |
IOU2:
router eigrp 249 |
IOU9:
router eigrp 249 |
IOU7:
router bgp 67 |
实验结果:
IOU8#tra 9.9.9.9 so l 0 Type escape sequence to abort. Tracing the route to 9.9.9.9 VRF info: (vrf in name/id, vrf out name/id) 1 18.1.1.1 0 msec 1 msec 4 msec 2 13.1.1.3 1 msec 1 msec 0 msec 3 35.1.1.5 [MPLS: Labels 18/16 Exp 0] 0 msec 0 msec 5 msec 4 67.1.1.6 [MPLS: Label 16 Exp 0] 1 msec 5 msec 6 msec 5 67.1.1.7 1 msec 4 msec 5 msec 6 67.1.1.6 5 msec 1 msec 1 msec 7 56.1.1.5 [MPLS: Labels 17/16 Exp 0] 5 msec 6 msec 3 msec 8 24.1.1.4 [MPLS: Label 16 Exp 0] 3 msec 9 msec 3 msec 9 24.1.1.2 1 msec 1 msec 2 msec 10 29.1.1.9 2 msec 1 msec 1 msec
符合预期:IOU8->IOU1->IOU3->IOU5->IOU6->IOU7->IOU6->IOU5->IOU4->IOU2->IOU9
本文完。如有疑问,欢迎在下方留言;如本文有什么错误,欢迎在下方留言指正,谢谢。
发表评论?