虚链路:是指一条通过一个非骨干区域连接到骨干区域的链路。 虚链路一般用于: v 通过一个非骨干区域连接一个区域到骨干区域。 v 通过一个非骨干区域连接一个分段的骨干区域两边的部分区域。 配置虚链路规则: v 虚链路必须配置在两台路由器之间。 v 虚链路所经过的区域必须拥有全部的路由信息。 v 传送区域不能是一个末梢区域和NSSA区域。 v 虚链路的稳定性取决于其经过的区域的稳定性。 v 虚链路有助于提供逻辑冗余。 CISCO思科OSPF相关命令: 命令 | | (config)# router ospf 110 | | (config-router)# router-id 1.1.1.1 | | (config-router)# network 网段 反掩码 Area0(区域号) | | (config-router)# area 1 stub | | (config-router)# area 1 stub no-summary | | (config-router)# redistribut rip subnets | | (config-router)# redistribut ospf metric 5 | | (config-router)# default-information originate | | (config-router)# area 2 nssa | | (config-router)# area 2 nssa no-summary | | (config-router)# area 2 nssa default-information-originate | | (config-router)# area 1 range 192.168.0.0 255.255.0.0 | | (config-router)# summary-address 192.168.0.0 255.255.0.0 | | (config-router)# area 1(要穿越的区域) virtual-links 1.1.1.1(对端的RrouterID) | | (config-if)# ip ospf priority 1 | | (config-if)# ip ospf cost 19 | | | | # show ip ospf neighbor detail | | | | # show ip ospf interface type number | | # show ip ospf interface brief | | | | # clear ip ospf precesses | | | | | | | |
注:当接口Priority优先级为0时,表示不参与DR与BDR的选举。 华为H3C相关命令: 命令 | | [huawei] router id 1.1.1.1 | | | | | | [huawei-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255 | | [huawei-ospf-1-area-0.0.0.0] stub | | [huawei-ospf-1-area-0.0.0.0] stub no-summay | | [huawei-ospf-1-area-0.0.0.0] nssa | | [huawei] display ospf peer | | [huawei-ospf-1] import-route static type 1 | | [huawei] display ospf abr-asbr | | [huawei-Eth0/0/0] ospf dr-priority 1 | | [huawei] dispaly ospf interface | |
|