[AR1-ospf-1]default-route-advertise always default-route-advertise:命令用来将默认路由通告到普通OSPF区域,如果没有配置always参数,本机路由表中必须有激活的非本OSPF默认路由时才向其他路由器发布默认路由。本例中,本地路由表中没有默认路由,所以需要增加always参数。 # 查看R2与R3上的IP路由表 [AR2]display ...
default-route-advertise always // 强制下发默认路由 import-route static // 导入静态路由 area 0.0.0.0 network 1.1.1.1 0.0.0.0 // 配置网络1.1.1.1 network 10.8.8.0 0.0.0.3 network 11.8.8.0 0.0.0.3 network 192.168.60.0 0.0.0.255 # ip route-static 0.0.0.0 0.0.0.0 212.11.10.2 // 配置静态路由...
area 0.0.0.0 network 10.1.12.0 0.0.0.255 ip route-static 192.168.0.0 255.255.255.0 10.1.0.3 ip route-staticvpn-instancevrf10.0.0.0 0.0.0.0 10.0.0.3 LSW3: [SW3]dis current-configuration interface # interface Vlanif1 # interface Vlanif12 ip address 10.1.12.3 255.255.255.0 # interface Vlanif1...
1 area dhcp select interface interface Vlanifip address 111 22ospfenable1 area #interface Eth-Trunkport link-type trunkport trunk allow-pass vlan #interface Eth-Trunkport link-type trunkport trunk allow-pass vlan #interface Eth-Trunkport link-type trunkport trunk allow-pass vlan #interface Gigab...
default-route-advertise always import-route direct import-route static area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 10.12.12.0 0.0.0.3 network 10.22.22.0 0.0.0.3 同样也要在SW1和SW2上宣告网段,关键代码如下: #SW1 ospf 10 router-id 3.3.3.3 ...
import-route direct import-route static area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.11.11.0 0.0.0.3 network 10.21.21.0 0.0.0.3 #R2 ospf 10 router-id 2.2.2.2 default-route-advertise always import-route direct import-route static area 0.0.0.0 ...
originate 5.引入 OSPF 路由[R4]ip ip-prefix 1 index 10 permit 10.0.5.5 32[R4]route-policy 1 permit node 10[R4-route-policy]if-match ip-prefix 1[R4-route-policy]bgp 100[R4-bgp]import-route ospf 1 route-policy 1[R4-bgp]ospf 1[R4-ospf-1]default-route-advertise always 配置完毕 ...
[Router] ospf 1 [Router-ospf-1] default-route-advertise always 上述命令会在OSPF区域中发布默认路由。always参数表示无论是否存在其他默认路由,都会进行发布。 如果是通过静态路由和OSPF结合的方式,配置过程如下: 首先,配置静态默认路由: plaintext [Router] ip route-static 0.0.0.0 0 [下一跳地址] 然后,...
[r1-GigabitEthernet0/0/0]ospf dr-priority2---修改OSPF接口优先级缺省路由下放[r5-ospf-1]default-route-advertise---非强制性下放,要求本地必须存在一条缺省路由[r5-ospf-1]default-route-advertise always---强制性下放[r1-ospf-1]silent-interfaceLoopBack0---静默接口,配置为静默接口的接口,不会...
[r3-ospf-1]default-route-advertise always 六、vlan配置命令 1、创建 vlanVLAN 编号 0-4095 其中 1-4094 可用 默认存在 van1,且默认所有接口屈于 vlan1 [sw1]vlan 2 [sw1-vlan2]q [sw1]vlan batch 4 to 100 批量创建 [sw1]undo vlan batch 2 to 100 ...