TTEP.CN > 手机 >
动态路由协议eigrp和mpls的配置
动态路由协议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
实验拓扑图:
配置:
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
- 最近发表
- 赞助商链接