發布時間: 2017-10-12 17:18:18
BY亂雪紛飛?
?多協議標簽交換MPLS(Multiprotocol Label Switching)是一種IP(Internet Protocol)骨干網技術。MPLS在無連接的IP網絡上引入面向連接的標簽交換概念,將第三層路由技術和第二層交換技術相結合,充分發揮了IP路由的靈活性和二層交換的簡捷性。
MPLS起源于IPv4(Internet Protocol version 4),其核心技術可擴展到多種網絡協議,包括IPv6(Internet Protocol version 6)、IPX(Internet Packet Exchange)和CLNP(Connectionless Network Protocol)等。MPLS中的“Multiprotocol”指的就是支持多種網絡協議。
由此可見,MPLS并不是一種業務或者應用,它實際上是一種隧道技術。這種技術不僅支持多種高層協議與業務,而且在一定程度上可以保證信息傳輸的安全性。
R1:
hostname R1
!
no ip domain lookup
ip cef
no ipv6 cef
!
mpls label range 100 199
mpls label protocol ldp
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
ip address 12.1.1.1 255.255.255.0
mpls ip
!
interface Ethernet0/1
ip address 13.1.1.1 255.255.255.0
mpls ip
!
router eigrp 90
network 1.1.1.1 0.0.0.0
network 12.1.1.1 0.0.0.0
network 13.1.1.1 0.0.0.0
!
mpls ldp router-id Loopback0
R2:
hostname R2
!
ip vrf ccie
rd 100:100
route-target export 4:5
route-target import 5:4
!
no ip domain lookup
ip cef
!
mpls label range 200 299
mpls label protocol ldp
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Ethernet0/0
ip address 12.1.1.2 255.255.255.0
mpls ip
!
interface Ethernet0/1
ip vrf forwarding ccie
ip address 24.1.1.2 255.255.255.0
!
router eigrp 90
network 2.2.2.2 0.0.0.0
network 12.1.1.0 0.0.0.255
network 24.1.1.0 0.0.0.255
!
router bgp 123
bgp router-id 2.2.2.2
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 123
neighbor 3.3.3.3 update-source Loopback0
!
address-family ipv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 next-hop-self
exit-address-family
!
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
exit-address-family
!
address-family ipv4 vrf ccie
redistribute static
exit-address-family
!
ip route vrf ccie 4.4.4.4 255.255.255.255 24.1.1.4
!
mpls ldp router-id Loopback0
R3:
hostname R3
!
ip vrf ccie
rd 100:100
route-target export 5:4
route-target import 4:5
!
no ip domain lookup
ip cef
!
mpls label range 300 399
mpls label protocol ldp
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Ethernet0/0
ip vrf forwarding ccie
ip address 35.1.1.3 255.255.255.0
!
interface Ethernet0/1
ip address 13.1.1.3 255.255.255.0
mpls ip
!
router eigrp 90
network 3.3.3.3 0.0.0.0
network 13.1.1.0 0.0.0.255
network 35.1.1.0 0.0.0.255
!
router bgp 123
bgp router-id 3.3.3.3
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 123
neighbor 2.2.2.2 update-source Loopback0
!
address-family ipv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 next-hop-self
exit-address-family
!
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf ccie
redistribute static
exit-address-family
!
ip route vrf ccie 5.5.5.5 255.255.255.255 35.1.1.5
!
mpls ldp router-id Loopback0
R4:
hostname R4
!
no ip domain lookup
ip cef
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Ethernet0/1
ip address 24.1.1.4 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 24.1.1.2
R5:
hostname R5
!
no ip domain lookup
ip cef
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 35.1.1.5 255.255.255.0
!
ip route 0.0.0.0 0.0.0.0 35.1.1.3
下一篇: {思科CCIE-RS}IPSec VPN