STUB
与
NSSA
区域总结
实验拓扑如下
:
各路由器配置如下
:
R1:
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point(
不加此行将宣告的是
1.1.1.1
的主机路由
,
即掩码是
32
位的
)
interface Serial1/0
ip address 192.168.1.1 255.255.255.0
interface Serial1/1
ip address 193.168.1.1 255.255.255.0
router ospf
1
router-id 1.1.1.1
log-adjacency-changes
redistribute connected subnets
network 192.168.1.0 0.0.0.255 area 0
network 193.168.1.0 0.0.0.255 area 0
R2:
interface Serial1/0
ip address 192.168.1.2 255.255.255.0
interface Serial1/1
ip address 194.168.1.2 255.255.255.0
router ospf