bgp mpls vpn配置实例 下载本文

内容发布更新时间 : 2024/5/18 9:18:36星期一 下面是文章的全部内容请认真阅读。

BGP MPLS VPN 配置实验

网络拓扑

配置文件 PE1:

ospf 1 area 0.0.0.0

network 10.0.0.0 0.0.0.3

network 1.1.1.1 0.0.0.0 (igp)

interface LoopBack0

ip address 1.1.1.1 255.255.255.255

ospf enable 1 area 0.0.0.0 ( 端口使能ospf)

interface Ethernet0/0/0

ip address 10.0.0.1 255.255.255.252

ospf enable 1 area 0.0.0.0 ( 端口使能ospf)

bgp 65115 router-id 1.1.1.1

peer 3.3.3.3 as-number 65115

peer 3.3.3.3 connect-interface LoopBack0

ipv4-family unicast undo synchronization

network 1.1.1.1 255.255.255.255 network 10.0.0.0 255.255.255.252 peer 2.2.2.2 enable

peer 3.3.3.3 enable

mpls lsr-id 1.1.1.1 mpls lsp-trigger all

mpls ldp

interface Ethernet0/0/0

(配置bgp) (宣告网络) mpls) (使能mpls

mpls ldp (端口使能mpls)

ip vpn-instance VPN1 ipv4-family

route-distinguisher 100:1

vpn-target 111:1 export-extcommunity

vpn-target 111:1 import-extcommunity

ip vpn-instance VPN2 ipv4-family

route-distinguisher 200:1

vpn-target 222:1 export-extcommunity

vpn-target 222:1 import-extcommunity

interface Ethernet0/0/1 ip binding vpn-instance VPN1

ip address 10.0.0.13 255.255.255.252

interface GigabitEthernet0/0/0 ip binding vpn-instance VPN2

ip address 10.0.0.9 255.255.255.252 VPN1) (配置VPN2) VPN) (端口绑定VPN) (配置 (端口绑定