05-MPLS VPN

MPLS VPN

RD:用来区分本地VRF,该属性仅本地有效 RT:具有全局唯一性,并且只能被一个VPN使用

CE1:(CE3同样操作)
interface LoopBack0
ip address 192.168.1.1 255.255.255.0

interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 10.1.1.2 255.255.255.0

ospf 1
area 0.0.0.0
network 10.1.1.0 0.0.0.255
network 192.168.1.0 0.0.0.255

PE1:(PE2同样操作)

ip vpn-instance h3c
route-distinguisher 100:1
vpn-target 100:1 import-extcommunity
vpn-target 100:1 export-extcommunity

interface LoopBack0
ip address 1.1.1.1 255.255.255.255

interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.1.1.1 255.255.255.0
mpls enable
mpls ldp enable

interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip binding vpn-instance h3c
ip address 10.1.1.1 255.255.255.0

ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 100.1.1.0 0.0.0.255

ospf 2 vpn-instance h3c
import-route bgp 100
area 0.0.0.0
network 10.1.1.0 0.0.0.255

mpls lsr-id 1.1.1.1
quit
mpls ldp
quit

bgp 100
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack0

address-family vpnv4
peer 3.3.3.3 enable

ip vpn-instance h3c

address-family ipv4 unicast
import-route ospf 2

P:
mpls lsr-id 2.2.2.2
quit
mpls ldp
quit

interface LoopBack0
ip address 2.2.2.2 255.255.255.255

interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 100.1.1.2 255.255.255.0
mpls enable
mpls ldp enable

interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 100.2.2.1 255.255.255.0
mpls enable
mpls ldp enable

ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 100.1.1.0 0.0.0.255
network 100.2.2.0 0.0.0.255

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

劉小健

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值