Command Line Reference
Layer 3 Configuration
OSPF
33 min
ospf view ospf view table 1 ospf view table 1 ospf view true 354,307#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type show ip ospf neighbor \[ show ip ospf neighbor \[ options ] \[command] show ip ospf neighbor \[ options ] \[purpose] display ospf neighbor information \[options] true 228,433#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] privileged user view \[use cases] sonic# show ip ospf neighbor neighbor id pri state up time dead time address interface rxmtl rqstl dbsml 40 0 0 1 full/dr 2m16s 32 582s 40 0 0 2 ethernet 0/40 40 0 0 1 0 0 0 show ip ospf route show ip ospf route \[command] show ip ospf route \[purpose] display ospf route information \[view] privileged user view \[use cases] sonic# show ip ospf route \============ ospf network routing table ============ n 40 0 0 0/24 \[10000] area 0 0 0 10 directly attached to ethernet 0/40 \============ ospf router routing table ============= \============ ospf external routing table =========== show ip ospf database show ip ospf database \[command] show ip ospf database \[purpose] display ospf database information \[view] privileged user view \[use cases] sonic# show ip ospf database ospf router with id (40 0 0 1) router link states (area 0 0 0 10) link id adv router age seq# cksum link count 40 0 0 1 40 0 0 1 1062 0x8000003c 0x71ca 1 200 0 0 1 200 0 0 1 1063 0x80000003 0x240f 1 net link states (area 0 0 0 10) link id adv router age seq# cksum 40 0 0 2 200 0 0 1 1063 0x80000001 0x2053 show ip ospf vrf show ip ospf vrf vrf name neighbor \[ options ] \[command] show ip ospf vrf vrf name neighbor \[ options ] \[purpose] display ospf neighbor information for specified vrf \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[options] true 215,446#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] privileged user view \[use cases] sonic# show ip ospf vrf 100 neighbor vrf name vrf100 neighbor id pri state up time dead time address interface rxmtl rqstl dbsml 40 0 0 2 1 full/backup 3 521s 36 996s 40 0 0 2 ethernet 0/40 40 0 0 1 1 0 0 show ip ospf interface \[ethernet|vlan|link aggregation|traffic|json] show ip ospf interface \[ethernet|vlan|link aggregation|traffic|json] \[command] show ip ospf interface \[ethernet|vlan|link aggregation|traffic|json] \[purpose] display ospf neighbor information for the interface \[parameters] true 213,448#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] privileged user view \[use cases] sonic# show ip ospf interface ethernet 0/40 is up ifindex 57, mtu 9216 bytes, bw 10 mbit \<up,broadcast,running,allmulti,multicast> internet address 40 0 0 1/24, broadcast 40 0 0 255, area 0 0 0 10 mtu mismatch detection enabled router id 1 1 1 1, network type broadcast, cost 10000 transmit delay is 1 sec, state backup, priority 1 designated router (id) 200 0 0 1 interface address 40 0 0 2/24 backup designated router (id) 1 1 1 1, interface address 40 0 0 1 multicast group memberships ospfallrouters ospfdesignatedrouters timer intervals configured, hello 10s, dead 40s, wait 40s, retransmit 5 hello due in 1 825s neighbor count is 1, adjacent neighbor count is 1 bfd detect multiplier 3, min rx interval 300, min tx interval 300 ospf config ospf config table 2 ospf config table 2 ospf config true 375,286#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type router router ospf type \[ vrf name ] \[command] router ospf type \[ vrf name ] \[purpose] enable ospf and enter the ospf configuration view \[parameters] true 179,482#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] global configuration view \[notes] run command no router ospf \[ vrf name ] to disable ospf function \[use cases] sonic# configure sonic(config)# router ospf ospf router id ospf router id a b c d \[command] ospf router id a b c d \[purpose] configure router id \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] ospf configuration view \[notes] run command no ospf router id a b c d delete ospf router id \[use cases] sonic# configure sonic(config)# router ospf sonic(config router)# ospf router id 1 1 1 1 area area area id {authentication|default cost|nssa|stub} \[command] area area id { authentication|default cost|nssa|stub } \[purpose] configure area related parameters \[parameters] true 229,432#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] ospf configuration view \[notes] run command no area area id {authentication| default cost| nssa| stub} to delete area related parameter configurations \[use cases] sonic# configure sonic(config)# router ospf asonic(config router)# area 10 stub auto cost reference bandwidth auto cost reference bandwidth bandwidth \[command] auto cost reference bandwidth bandwidth \[purpose] configure auto cost reference bandwidth \[parameters] true 215,446#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] ospf configuration view \[notes] run command no auto cost reference bandwidth to delete configured reference bandwidth \[use cases] sonic# configure sonic(config)# router ospf sonic(config router)# auto cost reference bandwidth 10000 redistribute redistribute src protocol \[metric metric value |route map route map ] \[command] redistribute src protocol \[ metric metric value | route map route map ] \[purpose] redistribute information from another routing protocol in ospf \[parameters] true 212,449#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] ospf configuration view \[notes] the redistribution for the same protocol is an overriding configuration run command no redistribute src protocol \[ metric metric value | route map route map ] to cancel route redistribution \[use cases] sonic# configure terminal sonic(config)# router ospf sonic(config router)# redistribute connected metric 100 ip ospf area ip ospf area area id \[command] ip ospf area area id \[purpose] enable ospf function of the interface \[parameters] true 205,456#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf area area id to disable ospf function of the interface \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf area 10 ip ospf network {broadcast|non broadcast|point to multipoint|point to point} ip ospf network {broadcast|non broadcast|point to multipoint|point to point} \[command] ip ospf network {broadcast|non broadcast|point to multipoint|point to point} \[purpose] configure ospf network type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf network to not specify the network type for ospf, the default network type is broadcast \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf network point to point ip ospf cost ip ospf cost number \[command] ip ospf cost number \[purpose] configure the cost value of ospf network ports \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf cost to delete the cost value of the interface \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf cost 100 ip ospf priority ip ospf priority priority \[command] ip ospf priority priority \[purpose] configure ospf router priority \[parameters] true 233,428#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf priority to restore ospf router priority to default value \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf priority 10 ip ospf mtu ignore ip ospf mtu ignore \[command] ip ospf mtu ignore \[purpose] enable mtu ignore switch \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf mtu ingore to disable mtu ignore switch \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf mtu ignore ip ospf {dead interval|hello interval|retransmit interval} ip ospf {dead interval|hello interval|retransmit interval} \[command] ip ospf {dead interval|hello interval|retransmit interval} \[purpose] configure ospf various time intervals \[parameters] true 236,425#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf {dead interval|hello interval|retransmit interval} to restore various time intervals to default values \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf dead interval 50 sonic(config if 0/40)# ip ospf hello interval 10 sonic(config if 0/40)# ip ospf retransmit interval 20 ip ospf authentication \[null|message digest] ip ospf authentication \[null|message digest] \[command] ip ospf authentication \[null|message digest] \[purpose] configure ospf interface authentication method \[parameters] true 234,427#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] when there are no parameters, the authentication method is simple password authentication when both regional authentication and interface authentication are configured, interface authentication is preferred run command no ip ospf authentication to delete ospf interface authentication \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf authentication sonic(config if 0/40)# ip ospf authentication message digest ip ospf authentication key ip ospf authentication key auth key \[command] ip ospf authentication key auth key \[purpose] configure simple password authentication password \[parameters] true 205,456#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf authentication to delete password for simple password authentication \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf authentication key 123456 ip ospf message digest key ip ospf message digest key key id md5 key \[command] ip ospf message digest key key id md5 key \[purpose] configure md5 authentication password \[parameters] true 212,449#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf message digest key key id md5 key to delete password for md5 authentication method \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf message digest key 10 md5 123456 ip ospf bfd \[profile ip ospf bfd \[profile profile name ] \[command] ip ospf bfd \[ profile profile name ] \[purpose] configure ospf and bfd linkage \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf bfd to delete ospf and bfd linkage \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf bfd sw1 ip ospf ttl ip ospf ttl ttl value \[command] ip ospfttl ttl value \[purpose] set the ttl value of ospf message \[parameters] true 330,331#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] physical interface/vlan interface/lag interface configuration view \[notes] run command no ip ospf ttl to restore to the default value the default ttl is 1 \[use cases] sonic# configure sonic(config)# interface ethernet 0/40 sonic(config if 0/40)# ip ospf ttl 10
