根据网友南乔木投稿的拓扑和需求,主页菌也做了该实验——【实验】MPLS+DHCP+CHAP+Spoke的数据要经过Hub(感谢南乔木投稿):

实验需求:
- IP地址按拓扑给出的配置,其中IOU1需通过DHCP获得地址10.123.1.100,IOU4为DHCP下发地址,中间区域的IP由12.34.56.0/24网段划分成30子网IP地址。
- 中间区域为MPLS区域
- 要求左上方区域去往左下方区域,路径为:IOU1->IOU6->IOU8->IOU10->IOU13->IOU10->IOU8->IOU7->IOU18->IOU19
以下是所有的配置:
1、左上角的矩形区域:
IOU1:
! 地址规划 int e 0/0 !IGP |
IOU2:
! 地址规划 int e 0/1 int e 0/2 !IGP ! DHCP |
IOU16:
!vlan划分 |
IOU17:
!vlan划分 |
IOU3:
! 地址规划 int e 0/1 int e 0/2 !IGP ! DHCP |
IOU4:
! 地址规划 int e 0/0 int s 2/0 !IGP !EIGRP认证 int s 2/0 ! DHCP |
IOU5:
! 地址规划 int s 2/0 int s 2/1 !IGP !EIGRP认证 int s 2/0 |
2、中间圆形的MPLS区域:
IOU6:
!地址规划 int e 0/0 int e 0/1 !IGP and MPLS int r e 0/0-1 , l 0 !VRF int s 2/1 !PE-CE IGP !EIGRP认证 int s 2/1 !MP-BGP address-family vpnv4 !双向重分布 router bgp 1 |
IOU8:
!地址规划 int e 0/0 int e 0/1 int e 0/2 int e 0/3 !IGP and MPLS int r e 0/0-3 , l 0 !MP-BGP address-family vpnv4 |
IOU7:
!地址规划 int e 0/0 int e 0/1 !IGP and MPLS int r e 0/0-1 , l 0 !VRF and PE-CE IGP and CHAP int s 2/0 !MP-BGP address-family vpnv4 !双向重分布 router bgp 1 !OSPF向CE下发默认路由 |
IOU10:
!地址规划 int e 0/2 int e 0/3 !IGP and MPLS int r e 0/2-3 , l 0 !VRF and PE-CE IGP int e 0/0 !MP-BGP address-family vpnv4 !双向重分布 router bgp 1 !BGP通告0.0.0.0 |
IOU9:
!地址规划 int e 0/0 int e 0/1 int e 0/2 int e 0/3 !IGP and MPLS int r e 0/0-3 , l 0 !MP-BGP address-family vpnv4 |
IOU11:
!地址规划 int e 0/2 int e 0/3 !IGP and MPLS int r e 0/2-3 , l 0 !VRF and PE-CE IGP int e 0/0 !MP-BGP address-family vpnv4 !双向重分布 router bgp 1 |
3、左下角圆形区域:
IOU18:
!地址规划 int s 2/0 int e 0/0 !IGP !CHAP |
IOU19:
!地址规划 int e 0/0 !IGP |
4、右下角矩形区域:
IOU12:
!地址规划 int e 0/0 int e 0/1 int e 0/2 int e 0/3 !IGP |
IOU13:
!地址规划 int e 0/0 int e 0/1 int e 0/2 int e 0/3 !IGP !下发默认路由 |
IOU14:
!地址规划 int e 0/2 int e 0/3 !IGP |
IOU15:
!地址规划 int e 0/2 int e 0/3 !IGP |
实验现象:
DHCP:
IOU4#sh ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 10.123.1.1 0063.6973.636f.2d61. Apr 04 2016 08:24 AM Automatic 6162.622e.6363.3030. 2e30.3130.302d.4574. 302f.30
选路:
IOU1#tra 19.19.19.19 so l 0 Type escape sequence to abort. Tracing the route to 19.19.19.19 VRF info: (vrf in name/id, vrf out name/id) 1 10.123.1.2 2 msec 10.123.1.3 5 msec 10.123.1.2 1 msec 2 10.14.4.4 1 msec 1 msec 1 msec 3 45.1.1.5 9 msec 10 msec 10 msec 4 56.1.1.6 16 msec 19 msec 21 msec 5 12.34.56.6 [MPLS: Labels 22/38 Exp 0] 26 msec 19 msec 19 msec 6 172.10.10.10 [MPLS: Label 38 Exp 0] 23 msec 22 msec 22 msec 7 172.10.10.13 19 msec 20 msec 24 msec 8 172.10.10.10 33 msec 20 msec 19 msec 9 12.34.56.9 [MPLS: Labels 24/28 Exp 0] 29 msec 37 msec 27 msec 10 192.18.10.7 [MPLS: Label 28 Exp 0] 18 msec 21 msec 27 msec 11 192.18.10.18 27 msec 31 msec 37 msec 12 192.19.10.19 28 msec 44 msec 27 msec
还有就是在这个环境下BGP是可以不用配置next-hop-self的;然后我的做法是把IOU8和IOU9做成了RR,IOU6/7/10/11跟RR建邻居。
发表评论?