CCNP之MPLS VPN实验案例

2014-8-12 09:45| 发布者: 谢晓新| 查看: 8369| 评论: 0

实验要求:

  1、 依据拓扑,搭建好环境,测试底层环境可达;

  2、 A 公司总分部之间向 ISP 申请 MPLS VPN 用来传送内网数据,要求总分部之间可以实现通信,分部与分部之间不能相互通信,CE 与 PE 之间的协议如图;

  3、 B 公司总分部之间也是向 ISP 申请 MPLS VPN 用来传输内网数据,为了保证可靠度,同时向另一家 ISP 申请了帧中继用来传输内网数据,B 公司采用的协议是 OSPF,区域均为area 0;

  4、 确保 B 公司更倾向于走 MPLS VPN,帧中继只是作为备份。

 

  实验拓扑:

 

  实验步骤:

  1、在 ISP 内部部署 EIGRP 协议

  PE1:

  PE1(config)#int loopback0

  PE1(config-if)#ip add 2.2.2.2 255.255.255.0 //用作 router-id

  PE1(config)#router eigrp 1

  PE1(config-router)#no auto-summary

  PE1(config-router)#net 2.0.0.0

  PE1(config-router)#net 100.1.1.1 0.0.0.0

  R2(config-router)#passive-interface Loopback0

  R2:

  R2(config)#int loopback0

  R2(config-if)#ip add 4.4.4.4 255.255.255.0

  R2(config)#router eigrp 1

  R2(config-router)#no auto-summary

  R2(config-router)#net 4.0.0.0

  R2(config-router)#network 100.1.1.2 0.0.0.0

  R2(config-router)#network 100.2.2.1 0.0.0.0

  R2(config-router)#passive-interface Loopback0

  R3:

  R2(config)#int loopback0

  R2(config-if)#ip add 5.5.5.5 255.255.255.0

  R3(config)#router eigrp 1

  R3(config-router)#no auto-summary

  R3(config-router)#network 5.0.0.0

  R3(config-router)#network 100.2.2.2 0.0.0.0

  R3(config-router)#network 100.3.3.1 0.0.0.0

  R3(config-router)#passive-interface Loopback0

  PE2:

  PE2(config)#int loopback0

  PE2(config-if)#ip add 6.6.6.6 255.255.255.0

  PE2(config)#router eigrp 1

  PE2(config-router)#no auto-summary

  PE2(config-router)#network 6.0.0.0

  PE2(config-router)#network 100.3.3.2 0.0.0.0

  PE2(config-router)#passive-interface Loopback0

  查看 MPLS 骨干路由表:

  PE1#show ip rou eigrp

  100.0.0.0/24 is subnetted, 3 subnets

  D 100.3.3.0 [90/3193856] via 100.1.1.2, 01:06:54, Serial1/2

  D 100.2.2.0 [90/2681856] via 100.1.1.2, 01:06:54, Serial1/2

  4.0.0.0/24 is subnetted, 1 subnets

  D 4.4.4.0 [90/2297856] via 100.1.1.2, 01:06:54, Serial1/2

  5.0.0.0/24 is subnetted, 1 subnets

  D 5.5.5.0 [90/2809856] via 100.1.1.2, 01:06:54, Serial1/2

  6.0.0.0/24 is subnetted, 1 subnets

  D 6.6.6.0 [90/3321856] via 100.1.1.2, 01:06:54, Serial1/2

  2、配置骨干路由器的 MPLS

  PE1:

  PE1(config)#ip cef

  PE1(config)#mpls label protocol ldp //选择 LDP 标签分发协议

  PE1(config)#mpls ldp router-id loopback 0 force //选择使用回环口作为 LSR 的 Router-ID PE1(config)#interface s1/2

  PE1(config-if)#mpls ip

  R2:

  R2(config)#ip cef

  R2(config)#mpls label protocol ldp

  R2(config)#mpls ldp router-id loopback 0 force

  R2(config)#interface s1/0

  R2(config-if)#mpls ip

  R2(config)#interface s1/1

  R2(config-if)#mpls ip

  R3:

  R3(config)#ip cef

  R3(config)#mpls label protocol ldp

  R3(config)#mpls ldp router-id loopback 0 force

  R3(config)#interface s1/0

  R3(config-if)#mpls ip

  R3(config)#interface s1/1

  R3(config-if)#mpls ip

  PE2:

  PE2(config)#ip cef

  PE2(config)#mpls label protocol ldp

  PE2(config)#mpls ldp router-id loopback 0 force

  PE2(config)#interface s1/0

  PE2(config-if)#mpls ip

  查看 LFIB 表(标签转发表):

  PE1#show mpls forwarding-table

  Local Outgoing Prefix Bytes tag Outgoing Next Hop tag tag or VC or Tunnel Id switched interface

  16 Pop tag 4.4.4.0/24 0 Se1/2 point2point

  17 Pop tag 100.2.2.0/24 0 Se1/2 point2point

  18 16 5.5.5.0/24 0 Se1/2 point2point

  19 17 100.3.3.0/24 0 Se1/2 point2point

  20 19 6.6.6.0/24 0 Se1/2 point2point

  3、在两台 PE 路由器上配置 IBGP 协议

  PE1:

  PE1(config)#router bgp 100

  PE1(config-router)#neighbor 6.6.6.6 remote-as 100

  PE1(config-router)#neighbor 6.6.6.6 update-source loopback 0

  PE2:

  PE2(config)#router bgp 100

  PE2(config-router)#neighbor 2.2.2.2 remote-as 100

  PE2(config-router)#neighbor 2.2.2.2 update-source loopback 0

  查看 BGP 邻居:

  PE1#show ip bgp su

  BGP router identifier 2.2.2.2, local AS number 100

  BGP table version is 1, main routing table version 1

  Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

  6.6.6.6 4 100 163 131 1 0 0 01:13:14 0


123下一页
<
>
在培训行业极度市场化的今天,在网络工程师鱼目混珠的时代,帆联科技扎根技术的理念从来没有改变,帆联科技从不提倡短线功利性考证培训,严格要求教师和学员,要为自己的未来做出辛苦的努力。一分辛劳,一份收获。

联系我们

南宁市大学东路162号东盟财经广场1402

0771-3185755(服务时间:9:00-17:30)

admin@sail-lab.net

在线咨询新浪微博官方微信官方微信

部门热线

前   台:0771-3185755
培训部:15994437962
认证部:15994437962
技术部:15578317196

培训服务 考试认证 校企合作 联系电话0771-3185755 返回顶部
返回顶部