MPLS(multi protocol label switch)

MPLS(multi protocol label switch)

network layer protocol (ip ipv6 ipx appletalk)

layer3 vpn destination
layer2 circuit
outgoing interface on the egress router
qos
source address
 
process switching (route table)
fast switching (cache table)
cef (FIB&ADJ table)

control plane
data plane

MPLs labels
frame mode mpls (tcp/ip)
cell mode mple   (atm)

lsr (swap-label)
edge lsr (impose-label pop-label)

TDP (TCP/UDP 711 (HELLO UDP)(TAG TCP))
LDP (TCP/UDP 646 (HELLO UDP)(TAG TCP))

before1 PHP
before2 PHP
after PHP

配置
router
configure cef
configure mpls on a frame mode interface
option configure the MTU(1504 1508 1512) size in label switching

conf ter
ip cef
interface s 0/0
mpls ip 或 tag-switching ip
show mpls ldp neighbor
show mpls forwarding-table
show ip cef
show ip cef detail


overlay-VPN     Peer-to-peer VPN
安全            isp参与私网路由
费用低          Qos保证
                CE端配置简单

Peer-to-peer vpn
CE与PE (IGP)
如何区别CE的相同路由(RD)
VRF(虚拟路由转发)(mp-iBGP)
路由的导入导出(RT)

MPLS-VPN
ipv4+RD+RT=VPNv4
配置
R1 R2 R3 (ISP)
使用loopback接口标示并配置直连ip
R2
conf ter
ip vrf A
rd 1:1
route-target 1:1

conf ter
int s 0/1
ip vrf forwarding A
ip add 24.1.1.2 255.255.255.0
no shut

show ip route vrf A
ping vrf A 24.1.1.4

router rip
version 2
address-family ipv4 vrf A
network 24.0.0.0

bgp 1
bgp router-id 2.2.2.2
no auto-summary
no synchronization
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 up lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community

address-family ipv4 vrf A
redistribute rip

show ip bgp vpnv4 all
show ip bgp vpnv4 all 4.4.4.0 /24

router rip
address-family ipv4 vrf A
redistribute bgp 1 metric transparent

show mpls forwarding-table
show ip vpnv4 all label

R3
conf ter
ip vrf A
rd 1:1
route-target 1:1

conf ter
int s 0/1
ip vrf forwarding A
ip add 35.1.1.3 255.255.255.0
no shut
show ip route vrf A
ping vrf A 35.1.1.5

router rip
version 2
address-family ipv4 vrf A
network 35.0.0.0

bgp 1
bgp router-id 3.3.3.3
no auto-summary
no synchronization
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 up lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community

address-family ipv4 vrf A
redistribute rip

router rip
address-family ipv4 vrf A
redistribute bgp 1 metric transparent

R4 R5(一家企业A)(运行RIPv2 通告loopback和直连)


R6 R7(另一家企业B)(运行RIPv2 通告loopback和直连)

猜你喜欢

转载自davidlee1986.iteye.com/blog/1919374
今日推荐