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和直连)

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值