mpls-bgp实验

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

mpls

Ensp试验环境:

mpls-bgp.zip

R1.txt

R1:

R2.txt

R2:

R3.txt

R3:

R4.txt

R4:

R5.txt

R5:

R6.txt

R6:

R7.txt

R7:

配置:

R1:display current-configuration

#

sysname R1

#

ipvpn-instance site-a

ipv4-family

route-distinguisher 10:10

vpn-target 1:100 export-extcommunity

vpn-target 1:100 import-extcommunity

#

ipvpn-instance site-b

ipv4-family

route-distinguisher 20:20

vpn-target 2:200 export-extcommunity

vpn-target 2:200 import-extcommunity

#

mplslsr-id 1.1.1.1

mpls

#

mplsldp

#

#

aaa

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default

domaindefault_admin

local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw# local-user admin service-type http

#

firewall zone Local

#

interface Ethernet0/0/0

ip address 12.1.1.1 255.255.255.0

mpls

mplsldp

#

interface Ethernet0/0/1

ip binding vpn-instance site-a

ip address 14.1.1.1 255.255.255.0

#

interface Serial0/0/0

link-protocolppp

#

interface Serial0/0/1

link-protocolppp

#

interface Serial0/0/2

link-protocolppp

#

interface Serial0/0/3

link-protocolppp

#

interface GigabitEthernet0/0/0

ip binding vpn-instance site-b

ip address 13.1.1.1 255.255.255.0

#

interface GigabitEthernet0/0/1

#

interface GigabitEthernet0/0/2

#

interface GigabitEthernet0/0/3

#

wlan

#

interface NULL0

#

interface LoopBack0

ip address 1.1.1.1 255.255.255.255

#

bgp 100

peer 3.3.3.3 as-number 100

peer 3.3.3.3 connect-interface LoopBack0 #

ipv4-family unicast

import-routeospf 2

peer 3.3.3.3 enable

#

ipv4-family vpnv4

policyvpn-target

peer 3.3.3.3 enable

#

ipv4-familyvpn-instance site-a import-routeospf 2

#

ipv4-familyvpn-instance site-b import-route direct

peer 13.1.1.2 as-number 500

#

ospf 1

area 0.0.0.0

network 1.1.1.1 0.0.0.0

network 12.1.1.1 0.0.0.0

#

ospf 2 vpn-instance site-a

import-routebgp

area 0.0.0.0

network 14.1.1.1 0.0.0.0

#

user-interface con 0

user-interfacevty 0 4

user-interfacevty 16 20

#

Return

R2:R2>dis current-configuration #

sysname R2

#

mplslsr-id 2.2.2.2

mpls

#

mplsldp

#

#

aaa

authentication-scheme default authorization-scheme default accounting-scheme default domain default

相关文档
最新文档