知识屋:更实用的电脑技术知识网站
所在位置:首页 > 电脑知识  > 路由器

动态路由协议eigrp和mpls的配置

发表时间:2015-06-17来源:网络

动态路由协议eigrp和mpls的配置
 
实验拓扑图:
 
 
配置:
 
R1:
en
conf t
hostname R1
 
int loop 0
ip add 1.1.1.1 255.255.255.255
no shut
exit
int fa0/0
ip add 10.0.0.1 255.255.255.0
no shut
exit
 
!配置eigrp
router eigrp 10
network 1.1.1.1 0.0.0.0
network 10.0.0.0 0.0.0.255
 
!关闭自动汇总
no auto-summary 
exit
 
!配置MPLS
int fa0/0
mpls ip
exit
 
R2:
en
conf t
hostname R2
 
int loop 0
ip add 2.2.2.2 255.255.255.255
no shut
exit
int fa0/0
ip add 10.0.0.2 255.255.255.0
no shut
exit
int fa0/1
ip add 20.0.0.1 255.255.255.0
no shut
exit
 
!配置eigrp
router eigrp 10
network 2.2.2.2 0.0.0.0
network 10.0.0.0 0.0.0.255
network 20.0.0.0 0.0.0.255
 
!关闭自动汇总
no auto-summary 
exit
 
!配置MPLS
int fa0/0
mpls ip
exit
int fa0/1
mpls ip
exit
 
R3:
en
conf t
hostname R3
 
int loop 0
ip add 3.3.3.3 255.255.255.255
no shut
exit
int fa0/0
ip add 20.0.0.2 255.255.255.0
no shut
exit
int fa0/1
ip add 30.0.0.1 255.255.255.0
no shut
exit
 
!配置eigrp
router eigrp 10
network 3.3.3.3 0.0.0.0
network 20.0.0.0 0.0.0.255
network 30.0.0.0 0.0.0.255
 
!关闭自动汇总
no auto-summary 
exit
 
!配置MPLS
int fa0/0
mpls ip
exit
int fa0/1
mpls ip
exit
 
R4:
en
conf t
hostname R4
 
int loop 0
ip add 4.4.4.4 255.255.255.255
no shut
exit
int fa0/0
ip add 30.0.0.2 255.255.255.0
no shut
exit
int fa0/1
ip add 40.0.0.1 255.255.255.0
no shut
exit
 
!配置eigrp
router eigrp 10
network 4.4.4.4 0.0.0.0
network 30.0.0.0 0.0.0.255
network 40.0.0.0 0.0.0.255
 
!关闭自动汇总
no auto-summary
exit
 
!配置mpls
int fa0/0
mpls ip
exit
int fa0/1
mpls ip
exit
 
R5:
en
conf t
hostname R5
 
int loop 0
ip add 5.5.5.5 255.255.255.255
no shut
exit
int fa0/0
ip add 40.0.0.2 255.255.255.0
no shut
exit
 
!配置eigrp
router eigrp 10
network 5.5.5.5 0.0.0.0
network 40.0.0.0 0.0.0.255
 
!关闭自动汇总
no auto-summary
exit
 
!配置mpls
int fa0/0
mpls ip
exit
 
!查看mpls
 
show mpls forwarding-table
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜