使用GNS3实验MPLS协议

该博客介绍了如何在GNS3环境中配置MPLS协议,包括配置IP和路由协议、PE及P路由器,设置BGP、MP-BGP、VRF,并进行路由重分发。实验目标是使R1和R6通过私网网段通信,最终成功实现了MPLS标签头的抓包验证。
摘要由CSDN通过智能技术生成

实验目的:使R1和R6相互利用私网网段进行通信。
实验内容:配置了RIP OSPF BGP MPLS VRF,信息量很大,值得试验。
MPLS-RIP-BGP

1. 配置IP和路由协议

R1

conf t
 int E1/0
  ip addr 192.168.1.1 255.255.255.0
  no sh

R2

conf t
 int E1/0
  ip addr 192.168.1.2 255.255.255.0
  no sh
 int F0/0
  ip addr 10.1.10.1 255.255.255.0
  no sh

 interface Loopback0
  ip addr 10.1.1.2 255.255.255.255
 router ospf 100
  router-id 10.1.1.2
  passive-interface Loopback0
  network 10.0.0.0 0.255.255.255 area 0

R3

conf t
 int F0/0
  ip addr 10.1.10.2 255.255.255.0
  no sh
 int F0/1
  ip addr 10.1.20.1 255.255.255.0
  no sh

 interface Loopback0
  ip addr 10.1.1.3 255.255.255.255
 router ospf 100
  router-id 10.1.1.3
  passive-interface Loopback0
  network 10.0.0.0 0.255.255.255 area 0

R4

conf t
 int F0/0
  ip addr 10.1.20.2 255.255.255.0
  no sh
 int F0/1
  ip addr 10.1.30.1 255.255.255.0
  no sh

 interface Loopback0
  ip addr 10.1.1.4 255.255.255.255
 router ospf 100
  router-id 10.1.1.4
  passive-interface Loopback0
  network 10.0.0.0 0.255.255.255 area 0

R5

conf t
 int F0/1
  ip addr 10.1.30.2 255.255.255.0
  no sh
 int E1/0
  ip addr 192.168.4.1 255.255.255.0
  no sh

 interface Loopback0
  ip addr 10.1.1.5 255.255.255.255
 router ospf 100
  router-id 10.1.1.5
  passive-interface Loopback0
  network 10.0.0.0 0.2
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值