ospf多实例典型配置

  • 格式:doc
  • 大小:131.50 KB
  • 文档页数:21

下载文档原格式

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

OSPF多实例实验

一、实验拓扑

二、实验版本

R3680E与R2631E版本是vrp3.3-008;R2621版本是174-0107;R4001是1.44

三、实验配置

1、pe1:3680E配置

dis cu

#

sysname R3680E

#

local-user aaa password simple aaa

local-user aaa service-type telnet

#

mpls lsr-id 202.1.1.1

#

mpls

#

mpls ldp

#

ip vpn-instance vpna

route-distinguisher 100:1

vpn-target 100:1 export-extcommunity

vpn-target 100:1 import-extcommunity

controller E1 1/0

clock master

using e1

#

controller E1 1/1

clock master

using e1

#

interface Serial1/0:0

link-protocol ppp

ip address 1.1.1.2 255.255.255.252

mpls

mpls ldp enable

#

interface Serial1/1:0

link-protocol ppp

ip binding vpn-instance vpna

ip address 3.1.1.1 255.255.255.252

#

interface LoopBack1

ip address 202.1.1.1 255.255.255.255

#

interface LoopBack2

ip binding vpn-instance vpna

ip address 203.1.1.1 255.255.255.255 ///必须是32位的

#

bgp 10

undo synchronization

group 1 internal

peer 1 connect-interface LoopBack1

peer 202.1.1.2 group 1

#

ipv4-family vpn-instance vpna

import-route direct

import-route ospf 10

undo synchronization

#

ipv4-family vpnv4

peer 1 enable

peer 202.1.1.2 group 1

#

ospf 1

area 0.0.0.0

network 1.1.1.0 0.0.0.3

network 202.1.1.1 0.0.0.0

#

ospf 10 router-id 203.1.1.1 vpn-instance vpna

import-route bgp ///必须引入bgp,为了建立203.1.1.1 -> 203.1.1.2的伪连接import-route direct

area 0.0.0.1

network 3.1.1.0 0.0.0.3

sham-link 203.1.1.1 203.1.1.2

dis ip rou vpn vpna

vpna Route Information

Routing Table: vpna Route-Distinguisher: 100:1

Destination/Mask Protocol Pre Cost Nexthop Interface

2.1.1.0/30 BGP 256 0 202.1.1.2 InLoopBack0

3.1.1.0/30 DIRECT 0 0 3.1.1.1 Serial1/1:0

3.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

3.1.1.2/32 DIRECT 0 0 3.1.1.2 Serial1/1:0

10.0.0.0/8 BGP 256 1610 202.1.1.2 InLoopBack0

20.0.0.0/8 OSPF 10 1610 3.1.1.2 Serial1/1:0

203.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0

203.1.1.2/32 BGP 256 0 202.1.1.2 InLoopBack0///如果该路由不存在,则sham不能up

dis ospf sham

OSPF Process 10 with Router ID 203.1.1.1

Sham Links

Sham-link 203.1.1.1 -> 203.1.1.2, State: Full

Area: 0.0.0.1 Neighbor-id: 203.1.1.2

Cost: 1 State: PtoP Type: Sham

Timers: Hello 10, Dead 40, Poll 0, Retransmit 5, Transmit Delay 1

2、pe2:R2631E配置

dis cu

#

sysname R2631E

#

local-user aaa password simple aaa

local-user aaa service-type telnet

#

mpls lsr-id 202.1.1.2

#

mpls

#

mpls ldp

#

ip vpn-instance vpna

route-distinguisher 100:1

vpn-target 100:1 export-extcommunity

vpn-target 100:1 import-extcommunity

#

controller E1 3/0

using e1

#