OSPF NSSA

让我读个条發表於2024-04-02

OSPF NSSA


sys
sysn R1

int g0/0/0
ip add 10.1.123.1 24
int l 0
ip add 1.1.1.1 32
int l 1
ip add 1.1.1.2 32
int l 2
ip add 1.1.1.3 32

ospf 1 router-id 1.1.1.1
a 0
net 10.1.123.1 0.0.0.0

acl 2000
rule 10 permit source 1.1.1.0 0.0.0.255

route-policy zx permit node 10
if-match acl 2000

ospf 1
import-route direct route-policy zx type 1

sys
sysn R2

int g0/0/0
ip add 10.1.123.3 24
int g0/0/1
ip add 10.1.24.1 24

ospf 1 router-id 2.2.2.2
a 0
net 10.1.123.3 0.0.0.0
a 1
net 10.1.24.1 0.0.0.0
nssa no-summary

sys
sysn R3

int g0/0/0
ip add 10.1.123.4 24
int g0/0/1
ip add 10.1.35.1 24

ospf 1 router-id 3.3.3.3
a 0
net 10.1.123.4 0.0.0.0
a 2
net 10.1.35.1 0.0.0.0
vlink-peer 5.5.5.5

sys
sysn R4
int g0/0/0
ip add 10.1.24.2 24
int l 0
ip add 4.4.4.4 32
int l 1
ip add 4.4.4.5 32

ospf 1 router-id 4.4.4.4
import-route direct
a 1 
net 10.1.24.2 0.0.0.0
nssa default-route-advertise

sys
sysn R5

int g0/0/0
ip add 10.1.35.2 24
int g0/0/1
ip add 10.1.56.1 24

ospf 1 router-id 5.5.5.5
a 2
network 10.1.35.2 0.0.0.0
a 3
net 10.1.56.1 0.0.0.0
a 2
vlink-peer 3.3.3.3
vlink-peer 1.1.1.1

int g0/0/1
ospf authentication-mode md5 1 cipher admin

sys
sysn R6
int g0/0/0
ip add 10.1.56.2 24

ospf 1 router-id 6.6.6.6
a 3
net 10.1.56.2 0.0.0.0

int g0/0/0
ospf authentication-mode md5 1 cipher admin

相關文章