Sunday, July 29, 2012

Personal Brocade OSPF Notes

This is an odd post to anyone reading this.  Im just putting down some notes I took on some OSPF stuff I just went through with one of my Brocade contacts.  This is really for me to refer back to in the future.  

FES12GCF Router#sho ip ospf neigh

Port        Address         Pri State      Neigh Address   Neigh ID        Ev
v2          172.16.2.2      1   FULL/DR    172.16.2.1      2.2.2.2         6 
FES12GCF Router#sho ip ospfr    interface

v2,OSPF enabled
     IP Address 172.16.2.2, Area 0
     OSPF state BD, Pri 1, Cost 1, Options 2, Type broadcast
     Timers(sec): Transit 1, Retrans 5, Hello 10, Dead 40
     DR:  Router ID 2.2.2.2           Interface Address 172.16.2.1
     BDR: Router ID 1.1.1.1           Interface Address 172.16.2.2
     Neighbor Count = 1, Adjacent Neighbor Count= 1
     Neighbor:         172.16.2.1
     Authentication-Key:None
     MD5 Authentication: Key None, Key-Id None, Auth-change-wait-time 300

lb1,OSPF enabled
     IP Address 1.1.1.1, Area 0
     OSPF state DR, Pri 1, Cost 0, Options 2, Type broadcast
     Timers(sec): Transit 1, Retrans 5, Hello 10, Dead 40
     DR:  Router ID 1.1.1.1           Interface Address 1.1.1.1
     BDR: Router ID 0.0.0.0           Interface Address 0.0.0.0
     Neighbor Count = 0, Adjacent Neighbor Count= 0
     Authentication-Key:None
     MD5 Authentication: Key None, Key-Id None, Auth-change-wait-time 300
FES12GCF Router#
FES12GCF Router#sh ip ospf database link-state

Index Area ID         Type LS ID           Adv Rtr         Seq(Hex) Age  Cksum
1     0               Rtr  3.3.3.3         3.3.3.3         80000004 499  0x2177
2     0               Rtr  2.2.2.2         2.2.2.2         80000006 494  0xc74c
3     0               Rtr  1.1.1.1         1.1.1.1         80000004 498  0x9027
4     0               Net  172.16.3.2      3.3.3.3         80000002 499  0x2357
5     0               Net  172.16.2.1      2.2.2.2         80000002 499  0x0286

FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
3.3.3.3         255.255.255.255 172.16.2.1      3.3.3.3         v2   2    IR 
172.16.3.0      255.255.255.252 172.16.2.1      3.3.3.3         v2   2    IR 


FES12GCF Router#sh   ip route
Total number of IP routes: 5, avail: 79992 (out of max 80000)
Start index: 1  B:BGP D:Connected  R:RIP  S:Static  O:OSPF *:Candidate default
        Destination     NetMask         Gateway         Port       Cost   Type
1       1.1.1.1         255.255.255.255 0.0.0.0         lb1        1      D  
2       2.2.2.2         255.255.255.255 172.16.2.1      v2         1      O  
3       3.3.3.3         255.255.255.255 172.16.2.1      v2         2      O  
4       172.16.2.0      255.255.255.252 0.0.0.0         v2         1      D  
5       172.16.3.0      255.255.255.252 172.16.2.1      v2         2      O  

FES12GCF Router#traceroute  3.3.3.3
Type Control-c to abort
Tracing the route to IP node 3.3.3.3 from 1 to 30 hops

  1    <1 ms   <1 ms   <1 ms 172.16.2.1 
  2    <1 ms   14 ms   <1 ms 3.3.3.3 

FES12GCF Router#
FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
3.3.3.3         255.255.255.255 172.16.2.1      2.2.2.2         v2   2    IA 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   2    IA 
FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
3.3.3.3         255.255.255.255 172.16.2.1      2.2.2.2         v2   2    IA 
172.16.3.0      255.255.255.0   172.16.2.1      2.2.2.2         v2   2    IA 


FES12GCF Router#qconfi      config t
FES12GCF Router(config)#int loo 1
FES12GCF Router(config-lbif-1)#no ip ospf ara ea 0
FES12GCF Router(config-lbif-1)#
FES12GCF Router(config-lbif-1)#
FES12GCF Router(config-lbif-1)#router opf  sfo  pf
FES12GCF Router(config-ospf-router)#redu isc     
FES12GCF Router(config-ospf-router)#res distributr e connected
Invalid input -> redistribute connected
Type ? for a list
FES12GCF Router(config-ospf-router)#red
  redistribution                Enable route redistribution
FES12GCF Router(config-ospf-router)#redistribution conne
  connected   Connected
FES12GCF Router(config-ospf-router)#redistribution connected
FES12GCF Router(config-ospf-router)#exit
FES12GCF Router(config)#exit

FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   2    IA 
FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
3.3.3.3         255.255.255.255 172.16.2.1      2.2.2.2         v2   2    IA 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   2    IA 
FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
3.3.3.3         255.255.255.255 172.16.2.1      2.2.2.2         v2   2    IA 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   2    IA 
FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   10   E2 
FES12GCF Router#sh ip route ospf
Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   10   E2 

Start index: 1  IA:Inter area  IR:Intra area  E1:External type 1  E2:External type 2
Destination     NetMask         Gateway         RouterID        Port Cost Type
2.2.2.2         255.255.255.255 172.16.2.1      2.2.2.2         v2   1    IR 
172.16.3.0      255.255.255.252 172.16.2.1      2.2.2.2         v2   2    IA 
FES12GCF Router#

Note*** 'ip ospf passive' is for interfaces that you do not want to send tospf traffic out of.  that means going to a switch downstream that does not need ospf