Controller Based WLANs

 View Only
last person joined: one year ago 

APs, Controllers, VIA

Redistribution of static routes through ospf 

Apr 23, 2017 03:07 AM

Q:

Redistribution of static routes through ospf



A:

Redistribution of Static Routes over OSPF is needed when one or more static routes need to be propagated over OSPF. OSPF will only redistribute classful network routes by default. Static Routes redistributed to OSPF neighbor are marked External. It does not add internal link cost to the net route cost.

 

(A7220-VIG-2) [mynode] (config) #show ip route | i "S"
Codes: C - connected, O - OSPF, R - RIP, S - static
       M - mgmt, U - route usable, * - candidate default, V - RAPNG VPN/Branch
 
S*    0.0.0.0/0  [1/0] via 2.2.2.1*
S    192.168.1.0/24 [1/0] via 2.2.2.1*
S    192.168.2.0/24 [1/0] via 2.2.2.1*
S    192.168.3.0/24 [1/0] via 2.2.2.1*
S    192.168.4.0/24 [1/0] via 2.2.2.1*
S    192.168.5.0/24 [1/0] via 2.2.2.1*
(A7220-VIG-2) [mynode] (config) #
(A7220-VIG-2) [mynode] (config) #show configuration committed | include router
router ospf router-id 10.8.220.2
router ospf
router ospf area 0.0.0.0
(A7220-VIG-2) [mynode] (config) #
(A7220-VIG-2) [mynode] (config) #show ip ospf neighbor
 
OSPF Neighbor Table
-------------------
Neighbor ID  Pri  State      Address   Interface
-----------  ---  -----      -------   ---------
6.6.6.1      1    FULL/BDR   2.2.2.4   Vlan 2
(A7220-VIG-2) [mynode] (config) #
(A7220-VIG-2) [mynode] (config) #router ospf redistribute static
<cost>                  Route metric <0-16777215>
 
(A7220-VIG-2) [mynode] (config) #router ospf redistribute static 1
(A7220-VIG-2) ^[mynode] (config) #write mem

(A7005-1-R13) #show ip ospf neighbor
 
OSPF Neighbor Table
-------------------
Neighbor ID  Pri  State     Address   Interface
-----------  ---  -----     -------   ---------
10.8.220.2   1    FULL/DR   2.2.2.2   Vlan 2
(A7005-1-R13) #
(A7005-1-R13) #show ip ospf debug route
192.168.1.0   255.255.255.0   2.2.2.2   2     STUB_NET   1        TYPE_2_EXT
192.168.2.0   255.255.255.0   2.2.2.2   2     STUB_NET   1        TYPE_2_EXT
192.168.3.0   255.255.255.0   2.2.2.2   2     STUB_NET   1        TYPE_2_EXT
192.168.4.0   255.255.255.0   2.2.2.2   2     STUB_NET   1        TYPE_2_EXT
192.168.5.0   255.255.255.0   2.2.2.2   2     STUB_NET   1        TYPE_2_EXT
(A7005-1-R13) #

Statistics
0 Favorited
3 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.