ISIS(ASBR3 ,ASBR4,RR2,P2),OSPF(RR2,P2,PE3,PE4) ,在RR2上部署路由引入
代码如下:
ASBR3
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.1720.1600.1007.00
interface g0/0
isis enable 1
isis cost 100
interface g0/1
isis enable 1
isis cost 1000
interface loopback 0
isis enable 1
exit
ASBR4
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.1720.1600.1008.00
interface g0/0
isis enable 1
isis cost 100
interface g0/1
isis enable 1
isis cost 1000
interface loopback 0
isis enable 1
exit
RR2
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.1720.1600.1009.00
interface g0/1
isis enable 1
isis cost 1000
interface g0/0
isis enable 1
isis cost 50
interface loopback 0
isis enable 1
exit
P2
isis 1
is-level level-2
cost-style wide
network-entity 49.0003.1720.1600.1010.00
interface g0/1
isis enable 1
isis cost 1000
interface g0/0
isis enable 1
isis cost 50
interface loopback 0
isis enable 1
exit
RR2
router id 172.16.1.9
ospf 1
area 0
network 100.10.79.0 0.0.0.3
network 100.10.90.0 0.0.0.3
network 100.10.91.0 0.0.0.3
network 172.16.1.9 0.0.0.0
exit
exit
ospf 1
silent-interface g0/1
exit
interface g0/0
ospf cost 10
interface g0/2
ospf cost 10
P2
router id 172.16.1.10
ospf 1
area 0
network 100.10.80.0 0.0.0.3
network 100.10.90.0 0.0.0.3
network 172.16.1.10 0.0.0.0
area 10
network 100.10.102.0 0.0.0.3
exit
exit
ospf 1
silent g0/1
exit
interface g0/0
ospf cost 10
interface g0/2
ospf cost 10
PE3
router id 172.16.1.11
ospf 1
area 0
network 100.10.91.0 0.0.0.3
area 10
network 100.10.112.0 0.0.0.3
network 100.20.11.0 0.0.0.255
network 100.20.22.0 0.0.0.255
network 172.16.1.11 0.0.0.0
exit
exit
ospf 1
silent g5/0
silent g5/1
exit
interface g0/0
ospf cost 100
interface g0/2
ospf cost 10
quit
interface g0/0
ospf timer hello 15
PE4
router id 172.16.1.12
ospf 1
area 10
network 100.10.112.0 0.0.0.3
network 100.10.102.0 0.0.0.3
network 100.30.25.0 0.0.0.3
network 172.16.1.12 0.0.0.0
exit
exit
ospf 1
silent s1/0
exit
interface g0/0
ospf cost 100
interface g0/2
ospf cost 10
quit
interface g0/0
ospf timer hello 15
RR2 ISIS中引入OSPF
isis 1
address-family ipv4
import-route ospf 1 inherit-cost
exit
exit
RR2 OSPF中引入ISIS
ospf 1
import-route isis 1 inherit-cost
exit