Routing Protocols Configuration
BGP View
Section titled “BGP View”Table 1 BGP View
Command | Purpose |
---|---|
show ip bgp neighbors [A.B.C.D|X:X::X:X [OPTIONs]] | Display information of BGP neighbors. |
show ip bgp [A.B.C.D/M|A.B.C.D|X:X::X:X/M|X:X::X:X] | Display network information of BGP neighbors. |
show ip bgp summary [established|failed|json] | Display summary of BGP neighbor status. |
show ip bgp community-list {community_list_number|community_name} | Display information of BGP community-list. |
show ip bgp [vrf all|vrf_name] | Display information of BGP. |
show bgp peer-group | Display detailed information on BGP peer groups. |
show ip bgp statistics | Display BGP RIB advertisement statistics. |
show ip bgp neighbors [A.B.C.D|X:X::X:X [OPTIONs]]
Section titled “show ip bgp neighbors [A.B.C.D|X:X::X:X [OPTIONs]]”[Command]
show ip bgp neighbors [A.B.C.D|X:X::X:X [OPTIONs]]
[Purpose]
Display information of BGP neighbors.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor to display information about. |
X:X::X:X | IPv6 neighbor to display information about. |
[Options]
Option | Description |
---|---|
routes | Display routes learned from neighbor. |
advertised-routes | Display the routes advertised to a BGP neighbor. |
received-routes | Display the received routes from neighbor. |
prefix-counts | Display detailed prefix count information. |
filtered-routes | Display the filtered routes received from neighbor. |
bestpath-routes | Display the routes selected by best path. |
received | Display information received from a BGP neighbor. |
flap-statistics | Display flap statistics of the routes learned from neighbor. |
dampened-routes | Display the dampened routes received from neighbor. |
json | JavaScript Object Notation. |
[View]
Privileged User View
[Use Cases]
sonic# show ip bgp neighbors 10.0.0.1BGP neighbor is 10.0.0.1, remote AS 65100, local AS 65100, internal linkHostname: leaf-103 BGP version 4, remote router ID 10.1.0.103, local router ID 10.1.0.221 BGP state = Established, up for 00:11:35 Last read 00:00:35, Last write 00:00:35 Hold time is 180, keepalive interval is 60 seconds Neighbor capabilities: 4 Byte AS: advertised and received AddPath: IPv4 Unicast: RX advertised IPv4 Unicast and received Route refresh: advertised and received(old & new) Address Family IPv4 Unicast: advertised and received Hostname Capability: advertised (name: sonic,domain name: n/a) received (name: leaf-103,domain name: n/a) Graceful Restart Capability: advertised and received Remote Restart timer is 120 seconds Address families by peer: none Graceful restart information: End-of-RIB send: IPv4 Unicast End-of-RIB received: IPv4 Unicast Local GR Mode: Helper* Remote GR Mode: Helper R bit: False Timers: Configured Restart Time(sec): 120 Received Restart Time(sec): 120 IPv4 Unicast: F bit: False End-of-RIB sent: Yes End-of-RIB sent after update: Yes End-of-RIB received: Yes Timers: Configured Stale Path Time(sec): 360 Message statistics: Inq depth is 0 Outq depth is 0 Sent Rcvd Opens: 8 7 Notifications: 2 10 Updates: 2 14 Keepalives: 34 30 Route Refresh: 0 0 Capability: 0 0 Total: 46 61 Minimum time between advertisement runs is 0 seconds For address family: IPv4 Unicast Update group 7, subgroup 4 Packet Queue length 0 Community attribute sent to this neighbor(all) 7 accepted prefixes Connections established 2; dropped 1 Last reset 00:11:37, No AFI/SAFI activated for peerLocal host: 10.0.0.2, Local port: 179Foreign host: 10.0.0.1, Foreign port: 37052Nexthop: 10.0.0.2Nexthop global: fe80::1a17:25ff:fe37:6736Nexthop local: fe80::1a17:25ff:fe37:6736BGP connection: shared networkBGP Connect Retry Timer in Seconds: 120Estimated round trip time: 1 msRead thread: on Write thread: on FD used: 24
show ip bgp [A.B.C.D/M|A.B.C.D|X:X::X:X/M|X:X::X:X]
Section titled “show ip bgp [A.B.C.D/M|A.B.C.D|X:X::X:X/M|X:X::X:X]”[Command]
show ipbgp [A.B.C.D/M|A.B.C.D|X:X::X:X/M|X:X::X:X]
[Purpose]
Display network information of BGP neighbors.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D/M | IPv4 prefix. |
A.B.C.D | IPv4 network in the BGP routing table to display. |
X:X::X:X/M | IPv6 prefix. |
X:X::X:X | IPv6 network in the BGP routing table to display. |
[View]
Privileged User View
[Use Cases]
sonic# show ip bgpBGP table version is 1282, local router ID is 10.1.0.32, vrf id 0Default local pref 100, local AS 65100Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R RemovedNexthop codes: @NNN nexthop's vrf id, < announce-nh-selfOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*= 192.177.0.0/25 10.0.0.59 0 64600 65534 64618 65100 ?*> 10.0.0.57 0 64600 65534 64618 65100 ?*= 192.177.0.128/25 10.0.0.59 0 64600 65534 64618 65100 ?*> 10.0.0.57 0 64600 65534 64618 65100 ?Display ed 2 routes and 1282 total paths
show ip bgp summary [established|failed|json]
Section titled “show ip bgp summary [established|failed|json]”[Command]
show ip bgp summary [established|failed|json]
[Purpose]
Display summary of BGP neighbor status.
[View]
Privileged User View
[Use Cases]
sonic# show ip bgp summaryIPv4 Unicast Summary:BGP router identifier 10.1.0.32, local AS number 65100 vrf-id 0BGP table version 14084RIB entries 1287, using 231 KiB of memoryPeers 2, using 41 KiB of memoryPeer groups 6, using 384 bytes of memoryNeighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd NeighborName10.0.0.57 4 64600 5593 7340 0 0 0 02:57:22 640 ARISTA01T110.0.0.59 4 64600 5599 7118 0 0 0 02:57:17 640 ARISTA02T1Total number of neighbors 2
show ip bgp community-list {community_list_number|community_name}
Section titled “show ip bgp community-list {community_list_number|community_name}”[Command]
show ip bgp community-list {community_list_number|community_name}
[Purpose]
Display information of BGP community-list.
[Parameters]
Parameter | Description |
---|---|
community_list_number | Community-list number, range from 1 to 500. |
community_name | Community name. |
[View]
Privileged User View
[Use Cases]
sonic# show ip bgp community-list
show ip bgp [vrf all|vrf_name]
Section titled “show ip bgp [vrf all|vrf_name]”[Command]
show ip bgp [vrf all|vrf_name]
[Purpose]
Display information of BGP.
[Parameters]
Parameter | Description |
---|---|
all | All Views/VRFs. |
vrf_name | Specify the VRF name, the default VRF is default. |
[View]
Privileged User View
[Use Cases]
sonic# show ip bgp vrf allInstance default:BGP table version is 2375, local router ID is 30.11.0.84, vrf id 0Default local pref 100, local AS 65100Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R RemovedNexthop codes: @NNN nexthop's vrf id, < announce-nh-selfOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*> 0.0.0.0/0 30.11.13.9 0 65101 4200000001 i
show bgp peer-group
Section titled “show bgp peer-group”[Command]
show bgp peer-group
[Purpose]
Display detailed information on BGP peer groups.
[View]
Privileged User View
[Use Cases]
sonic# show bgp peer-groupBGP peer-group PEER_V4_EBGP Peer-group type is external Configured address-families: IPv4 Unicast; L2VPN EVPN; Peer-group members: 30.11.122.1 Active 30.11.122.137 ActiveBGP peer-group PEER_V6_EBGP Peer-group type is external Configured address-families: IPv6 Unicast; L2VPN EVPN; Peer-group members: 2022::2222 Active 2022::2224 Active
show ip bgp statistics
Section titled “show ip bgp statistics”[Command]
show ip bgp statistics
[Purpose]
Display BGP RIB advertisement statistics.
[View]
Privileged User View
[Use Cases]
sonic# show ip bgp statisticsBGP IPv4 Unicast RIB statistics (VRF default)Total Advertisements : 25Total Prefixes : 25Average prefix length : 19.20Unaggregateable prefixes : 25Maximum aggregateable prefixes: 0BGP Aggregate advertisements : 0Address space advertised : 985600 % announced : 0.02 /8 equivalent : 0.06 /24 equivalent : 3850.00Advertisements with paths : 25Longest AS-Path (hops) : 1Average AS-Path length (hops) : 1.00Largest AS-Path (bytes) : 6Average AS-Path size (bytes) : 6.00Highest public ASN : 0
BGP Config
Section titled “BGP Config”Table 2 BGP Config
Command | Purpose |
---|---|
bgp as-path access-list list_name {permit|deny} LINE | Add a BGP autonomous system path filter. |
bgp community-list community_list_number [standard|expanded] [seq seq-num] {permit|deny} AA:NN | Add a community list entry. |
bgp extcommunity-list excommunity_list_number [standard|expanded] [seq seq-num] {permit|deny} LINE | Add an extended community list entry. |
router bgp AS-number [vrf vrf_name] | Enter BGP Configuration View. |
address-family {ipv4|ipv6|l2vpn} unicast | Enter Address Family command mode. |
aggregate-address {A.B.C.D A.B.C.D|A.B.C.D/M} [as-set|summary-only|route-map route-map] | Configure BGP aggregate entries. |
bgp always-compare-med | Allow comparing MED from different neighbors. |
bgp bestpath [as-path {confed|ignore|multipath-relax}|compare-routerid] | Change the default bestpath selection. |
bgp ebgp-requires-policy | Require in and out policy for eBGP peers (RFC8212). |
bgp graceful-restart | Global Graceful Restart command. |
bgp router-id A.B.C.D | Override configured router identifier. |
bgp route-reflector allow-outbound-policy | Allow modifications made by out route-map and enable RR(route-reflector). |
bgp network import-check | Check BGP network route exists in IGP. |
bgp shutdown [message string] | Administrative shutdown of the BGP instance. |
distance {bgp external-distance internal-distance local-distance|administrative-distance A.B.C.D/M} | Define an administrative distance. |
neighbor {A.B.C.D|X:X::X:X|String} advertisement-interval internal | Set the minimum interval between sending BGP routing updates. |
neighbor {A.B.C.D|X:X::X:X|String} bfd | Enable BFD support. |
neighbor {A.B.C.D|X:X::X:X|String} description description | Allow EBGP neighbors not on directly connected networks. |
neighbor {A.B.C.D|X:X::X:X|String} ebgp-multihop count | Allow EBGP neighbors not on directly connected networks. |
neighbor {A.B.C.D|X:X::X:X|String} password password | Set a password for BGP neighbor. |
neighbor {A.B.C.D|X:X::X:X|String} peer-group peer-group | Set to be the member of a peer-group. |
neighbor {A.B.C.D|X:X::X:X|String} remote-as AS-number | Specify a BGP neighbor. |
neighbor {A.B.C.D|X:X::X:X|String} shutdown | Administratively shut down this neighbor. |
neighbor {A.B.C.D|X:X::X:X|String} update-source {A.B.C.D|X:X::X:X|String} | Specify the source of routing updates. |
neighbor peer-group peer-group | Add a peer-group. |
update-delay max-delay | Force initial delay for best-path and updates. |
network {A.B.C.D/M|A.B.C.D [mask A.B.C.D]} [route-map route-map] | Specify a network to announce via BGP. |
neighbor {A.B.C.D|X:X::X:X|String} activate | Enable the address family for this neighbor. |
neighbor {A.B.C.D|X:X::X:X|String} allowas-in [number|origin] | Accept as-path with my AS present in it. |
neighbor {A.B.C.D|X:X::X:X|String} as-override | Override ASNs in outbound updates if as-path equals remote-as. |
neighbor {A.B.C.D|X:X::X:X|String} default-originate [route-map route-map] | Originate default route to this neighbor. |
neighbor {A.B.C.D|X:X::X:X|String} next-hop-self [force] | Disable the next hop calculation for this neighbor. |
neighbor {A.B.C.D|X:X::X:X|String} prefix-list list_name {in|out} | Filter updates to/from this neighbor. |
neighbor {peer-group|A.B.C.D|X:X::X:X|String} route-map route-map {in|out} | Apply route map to neighbor. |
redistribute src_protocol [metric metric_value|route-map route-map] | Redistribute information from another routing protocol. |
bgp as-path access-list list_name {permit|deny} LINE
Section titled “bgp as-path access-list list_name {permit|deny} LINE”[Command]
bgp as-path access-list list_name {permit|deny} LINE
[Purpose]
Add a BGP autonomous system path filter.
[Parameters]
Parameter | Description |
---|---|
list_name | Regular expression access list name. |
LINE | A regular-expression (1234567890_^|[, {}() ]$*+.?-\) to match the BGP AS paths. |
[View]
Global Configuration View
[Notes]
Run command no bgp as-path access-list list_name {permit|deny} LINE to delete AS path filter.
[Use Cases]
sonic# configure terminalsonic(config)# bgp as-path access-list test permit 66
bgp community-list community_list_number [standard|expanded] [seq seq-num] {permit|deny} AA:NN
Section titled “bgp community-list community_list_number [standard|expanded] [seq seq-num] {permit|deny} AA:NN”[Command]
bgp community-list community_list_number [standard|expanded] [seq seq-num] {permit|deny} AA:NN
[Purpose]
Add a community list entry.
[Parameters]
Parameter | Description |
---|---|
community_list_number | Community-list number, range from 1 to 500. 1-99 as standard and 100-500 as expanded. |
standard | Add a standard community-list entry. |
expanded | Add an expanded community-list entry. |
seq-num | Sequence number of an entry, range from 1 to 4294967295. |
AA:NN|Community number in AA:NN format (where AA and NN are (0-65535)) or local-AS|no-advertise|no-export|internet|graceful-shutdown|accept-own-nexthop|accept-own|route-filter-translated-v4|route-filter-v4|route-filter-translated-v6|route-filter-v6|llgr-stale|no-llgr|blackhole | no-peer or additive |
[View]
Global Configuration View
[Notes]
Run command no bgp community-list community_list_number [standard|expanded] [seq seq-num] {permit|deny} AA:NN to delete BGP community-list. When seq is not specified, it is started from 5, and the increment interval is 5.
[Use Cases]
sonic# configure terminalsonic(config)# bgp community-list standard 10 permit 12:13
bgp extcommunity-list excommunity_list_number [standard|expanded] [seq seq-num] {permit|deny} LINE
Section titled “bgp extcommunity-list excommunity_list_number [standard|expanded] [seq seq-num] {permit|deny} LINE”[Command]
bgp extcommunity-list excommunity_list_number [standard|expanded] [seq seq-num] {permit|deny} LINE
[Purpose]
Add an extended community list entry.
[Parameters]
Parameter | Description |
---|---|
excommunity_list_number | Excommunity-list number, range from 1 to 500. 1-99 as standard and 100-500 as expanded. |
standard | Specify standard extcommunity-list. |
expanded | Specify expanded extcommunity-list. |
seq-num | Sequence number of an entry, range from 1 to 4294967295. |
LINE | Extended community attribute in ‘rt aa:nn_or_IPaddr:nn’ OR ‘soo aa:nn_or_IPaddr:nn’ format. |
[View]
Global Configuration View
[Notes]
Run command no bgp extcommunity-list excommunity_list_number [standard|expanded] [seq seq-num] {permit|deny} LINE to delete extended community list.
[Use Cases]
sonic# configure terminalsonic(config)# bgp extcommunity-list standard TEST permit aa
router bgp AS-number [vrf vrf_name]
Section titled “router bgp AS-number [vrf vrf_name]”[Command]
router bgp AS-number [vrf vrf_name]
[Purpose]
Global Configuration View
[Parameters]
Parameter | Description |
---|---|
AS-number | Range from 1 to 4294967295, the default AS is 65100. |
vrf_name | VRF name, default VRF if not specified. |
[View]
BGP Configuration View
[Notes]
BGP views use the core instance (i.e., the default VRF) to communicate with peers. Run command no router bgp AS-number to delete configured BGP local AS number.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)#
address-family {ipv4|ipv6|l2vpn} unicast
Section titled “address-family {ipv4|ipv6|l2vpn} unicast”[Command]
address-family {ipv4|ipv6|l2vpn} unicast
[Purpose]
Enter Address Family command mode.
[View]
BGP Configuration View
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)#
aggregate-address {A.B.C.D A.B.C.D|A.B.C.D/M} [as-set|summary-only|route-map route-map]
Section titled “aggregate-address {A.B.C.D A.B.C.D|A.B.C.D/M} [as-set|summary-only|route-map route-map]”[Command]
aggregate-address {A.B.C.D A.B.C.D|A.B.C.D/M} [as-set|summary-only|route-map route-map
[Purpose]
Configure BGP aggregate entries.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | Aggregate address. |
A.B.C.D | Aggregate mask. |
A.B.C.D/M | Aggregate prefix. |
as-set | Generate AS set path information. |
summary-only | Filter more specific routes from updates. |
route-map | Apply route map to aggregate network. |
[View]
BGP Configuration View/BGP IPv4 Unicast Address-family View
[Notes]
Run command no aggregate-address {A.B.C.D A.B.C.D|A.B.C.D/M} [as-set|summary-only|route-map route-map] to delete BGP aggregate configuration.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65200sonic(config-router)# aggregate-address 100.1.1.0/24 as-setsonic(config-router)# aggregate-address 110.1.1.0/19 summary-only
bgp always-compare-med
Section titled “bgp always-compare-med”[Command]
bgp always-compare-med
[Purpose]
Allow comparing MED from different neighbors.
[View]
BGP Configuration View
[Notes]
This command is mainly applied to control the MED attribute to change the routing policy of BGP. It allows BGP to compare the MED attribute values of routes from different AS. If there are multiple valid routes to reach the same destination address, the route with smaller MED parameter can be selected as the final route actually in use. Run command no bgp always-compare-med to disable BGP always-compare-med.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp always-compare-med
bgp bestpath [as-path {confed|ignore|multipath-relax}|compare-routerid]
Section titled “bgp bestpath [as-path {confed|ignore|multipath-relax}|compare-routerid]”[Command]
bgp bestpath [as-path {confed|ignore|multipath-relax}|compare-routerid]
[Purpose]
Change the default bestpath selection.
[Parameters]
Parameter | Description |
---|---|
confed | Compare path lengths including confederation sets & sequences in selecting a route. |
ignore | Ignore as-path length in selecting a route. |
multipath-relax | Allow load sharing across routes that have different AS paths (but same length) |
compare-routerid | Compare router-id for identical EBGP paths. |
[View]
BGP Configuration View
[Notes]
AS-Path relax is a routing-level switch that determines how the same route from different AS domains is handled.
- When is enabled, the next hop of the same route from different AS domains will be an ECMP group.
- When this is disabled, only one of the routes will be selected for forwarding. Run command no bgp bestpath [as-path {confed | ignore | multipath-relax}|compare-routerid] to delete BGP bestpath selection.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp bestpath as-path ignore
bgp ebgp-requires-policy
Section titled “bgp ebgp-requires-policy”[Command]
bgp ebgp-requires-policy
[Purpose]
Require in and out policy for eBGP peers (RFC8212).
[View]
BGP Configuration View
[Notes]
This command requires that there must be a routing policy applied to the EBGP session, if there is not, no routes will be accepted or announced, and is on by default. In practice, we usually use no bgp ebgp-requires-policy command to disable the feature above.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# no bgp ebgp-requires-policy
bgp graceful-restart
Section titled “bgp graceful-restart”[Command]
bgp graceful-restart [preserve-fw-state|restart-time restart-time|rib-stale-time rib-stale-time|select-defer-time select-defer-time|stalepath-time stalepath-time]
[Purpose]
Global Graceful Restart command.
[Parameters]
Parameter | Description |
---|---|
preserve-fw-state | Sets F-bit indication that fib is preserved while doing Graceful Restart. |
restart-time | Set the time to wait to delete stale routes before a BGP open message is received in seconds. Range from 1 to 4095. |
rib-stale-time | Specify the stale route removal timer in rib in seconds. Range from 1 to 3600. |
select-defer-time | Set the time to defer the BGP route selection after restart in seconds. Range from 0 to 3600. |
statlepath-time | Set the max time to hold onto restarting peer’s stale paths in seconds. Range from 1 to 4095. |
[View]
BGP Configuration View
[Notes]
Run command no bgp graceful-restart [preserve-fw-state|restart-time delay |rib-stale-time delay |select-defer-time delay |stalepath-time delay ] to disable Graceful Restart.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp graceful-restart restart-time 200
bgp router-id A.B.C.D
Section titled “bgp router-id A.B.C.D”[Command]
bgp router-id A.B.C.D
[Purpose]
Override configured router identifier.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | BGP Route ID |
[View]
BGP Configuration View
[Notes]
This command is optional. Use Loopback0 IP as the router ID by default. Run command no bgp router-id A.B.C.D to delete BGP Route ID.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp router-id 1.1.1.1
bgp route-reflector allow-outbound-policy
Section titled “bgp route-reflector allow-outbound-policy”[Command]
bgp route-reflector allow-outbound-policy
[Purpose]
Allow modifications made by out route-map and enable RR(route-reflector).
[View]
BGP Configuration View
[Notes]
Run command no bgp route-reflector allow-outbound-policy to disable RR.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp route-reflector allow-outbound-policy
bgp network import-check
Section titled “bgp network import-check”[Command]
bgp network import-check
[Purpose]
Check BGP network route exists in IGP.
[View]
BGP Configuration View
[Notes]
Run command no bgp network import-check to disable check.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp network import-check
bgp shutdown [message string]
Section titled “bgp shutdown [message string]”[Command]
bgp shutdown [message string]
[Purpose]
Administrative shutdown of the BGP instance.
[Parameters]
Parameter | Description |
---|---|
string | Add a shutdown message (RFC 8203) |
[View]
BGP Configuration View
[Notes]
Run command no bgp shutdown [message string] Startup all BGP sessions.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# bgp shutdown
distance {bgp external-distance internal-distance local-distance|administrative-distance A.B.C.D/M}
Section titled “distance {bgp external-distance internal-distance local-distance|administrative-distance A.B.C.D/M}”[Command]
distance {bgp external-distance internal-distance local-distance|administrative-distance A.B.C.D/M}
[Purpose]
Define an administrative distance.
[Parameters]
Parameter | Description |
---|---|
external-distance | Distance for routes external to the AS, range from 1 to 255. |
internal-distance | Distance for routes internal to the AS, range from 1 to 255. |
local-distance | Distance for local routes, range from 1 to 255. |
administrative-distance A.B.C.D/M | Administrative distance, range from 1 to 255. |
[View]
BGP Configuration View
[Notes]
Run command no distance to delete distance configuration.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# distance 123 1.1.1.1/32
neighbor {A.B.C.D|X:X::X:X|String} advertisement-interval internal
Section titled “neighbor {A.B.C.D|X:X::X:X|String} advertisement-interval internal”[Command]
neighbor {A.B.C.D|X:X::X:X|String} advertisement-interval internal
[Purpose]
Set the minimum interval between sending BGP routing updates.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
internal | Time in seconds, range from 0 to 600. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} advertisement-interval internal to delete configuration.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 advertisement-interval 2
neighbor {A.B.C.D|X:X::X:X|String} bfd
Section titled “neighbor {A.B.C.D|X:X::X:X|String} bfd”[Command]
neighbor {A.B.C.D|X:X::X:X|String} bfd
[Purpose]
Enable BFD support.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} bfd to disable BFD support.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 10.0.0.1 bfd
neighbor {A.B.C.D|X:X::X:X|String} description description
Section titled “neighbor {A.B.C.D|X:X::X:X|String} description description”[Command]
neighbor {A.B.C.D|X:X::X:X|String} description description
[Purpose]
Set neighbor specific description.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
description | Specify the description for the BGP neighbor in string form. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} description description to delete description.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 description test
neighbor {A.B.C.D|X:X::X:X|String} ebgp-multihop count
Section titled “neighbor {A.B.C.D|X:X::X:X|String} ebgp-multihop count”[Command]
neighbor {A.B.C.D|X:X::X:X|String} ebgp-multihop count
[Purpose]
Allow EBGP neighbors not on directly connected networks.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
count | Maximum hop count, the range is [1,255] |
[View]
BGP Configuration View
[Notes]
This feature must be enabled when using a Loopback interface to configure BGP neighbors. The normal maximum hop count is configured as 255. Run command no neighbor {A.B.C.D|X:X::X:X|String} ebgp-multihop count to disable this feature.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 ebgp-multihop 2
neighbor {A.B.C.D|X:X::X:X|String} password password
Section titled “neighbor {A.B.C.D|X:X::X:X|String} password password”[Command]
neighbor {A.B.C.D|X:X::X:X|String} password password
[Purpose]
Set a password for BGP neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
password | The password. |
[View]
BGP Configuration View
[Notes]
This command sets an MD5 password for the BGP neighbor to connect to the remote peer’s TCP socket. Run command no neighbor {A.B.C.D|X:X::X:X|String} password password to delete the password.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 password test1234
neighbor {A.B.C.D|X:X::X:X|String} peer-group peer-group
Section titled “neighbor {A.B.C.D|X:X::X:X|String} peer-group peer-group”[Command]
neighbor {A.B.C.D|X:X::X:X|String} peer-group peer-group
[Purpose]
Set to be the member of a peer-group.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
peer-group | Peer-group name. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} peer-group peer-group to unbind.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 peer-group PEER_V4_EBGP
neighbor {A.B.C.D|X:X::X:X|String} remote-as AS-number
Section titled “neighbor {A.B.C.D|X:X::X:X|String} remote-as AS-number”[Command]
neighbor {A.B.C.D|X:X::X:X|String} remote-as AS-number
[Purpose]
Specify a BGP neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
AS-number | Range from 1 to 4294967295. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} remote-as AS-number to delete the neighbor.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 10.0.0.1 remote-as 65200
neighbor {A.B.C.D|X:X::X:X|String} shutdown
Section titled “neighbor {A.B.C.D|X:X::X:X|String} shutdown”[Command]
neighbor {A.B.C.D|X:X::X:X|String} shutdown
[Purpose]
Administratively shut down this neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} shutdown to administratively startup this neighbor.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 shutdown
neighbor {A.B.C.D|X:X::X:X|String} update-source {A.B.C.D|X:X::X:X|String}
Section titled “neighbor {A.B.C.D|X:X::X:X|String} update-source {A.B.C.D|X:X::X:X|String}”[Command]
neighbor {A.B.C.D|X:X::X:X|String} update-source {A.B.C.D|X:X::X:X|String}
[Purpose]
Specify the source of routing updates.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
[View]
BGP Configuration View
[Notes]
When using a Loopback interface to configure a BGP neighbor you must set the source to the Loopback interface. Run command no neighbor {A.B.C.D|X:X::X:X|String} update-source {A.B.C.D|X:X::X:X|String} to delete the source of routing updates.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor 1.1.1.1 update-source Ethernet49
neighbor peer-group peer-group
Section titled “neighbor peer-group peer-group”[Command]
neighbor peer-group peer-group
[Purpose]
Add a peer-group.
[Parameters]
Parameter | Description |
---|---|
peer-group | Peer-group name. |
[View]
BGP Configuration View
[Notes]
Run command no neighbor peer-group peer-group to delete this peer-group.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# neighbor PEER_V4_EBGP peer-group
update-delay max-delay
Section titled “update-delay max-delay”[Command]
update-delay max-delay
[Purpose]
Force initial delay for best-path and updates.
[Parameters]
Parameter | Description |
---|---|
max-delay | Max delay in seconds, range from 0 to 3600. |
[View]
BGP Configuration View
[Notes]
Run command no bgp update-delay max-delay to delete this configuration.
[Use Cases]
sonic# configure terminalsonic(config)# bgp update-delay 2
network {A.B.C.D/M|A.B.C.D [mask A.B.C.D]} [route-map route-map]
Section titled “network {A.B.C.D/M|A.B.C.D [mask A.B.C.D]} [route-map route-map]”[Command]
network {A.B.C.D/M|A.B.C.D [mask A.B.C.D]} [route-map route-map]
[Purpose]
Specify a network to announce via BGP.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D/M | IPv4 prefix |
A.B.C.D | Network number. |
A.B.C.D | Network mask. |
route-map | Route-map to modify the attributes. |
[View]
BGP Configuration View/BGP IPv4 Unicast Address-family View
[Notes]
Run command no network {A.B.C.D/M|A.B.C.D [mask A.B.C.D]} [route-map route-map] to delete the network.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# network 1.1.1.0/24
neighbor {A.B.C.D|X:X::X:X|String} activate
Section titled “neighbor {A.B.C.D|X:X::X:X|String} activate”[Command]
neighbor {A.B.C.D|X:X::X:X|String} activate
[Purpose]
Enable the address family for this neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
[View]
BGP Address-family View
[Notes]
By default, the switch will advertise IPv4 unicast address family to all neighbors. Using “no bgp default ipv4-unicast” will override this default, so all address families need to be explicitly enabled. Run command no neighbor {A.B.C.D|X:X::X:X|String} activate to disable the address family for this neighbor.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# network 1.1.1.1 activatesonic(config-router-af)# exitsonic(config-router)# address-family l2vpn evpnsonic(config-router-af)# network 1.1.1.1 activate
neighbor {A.B.C.D|X:X::X:X|String} allowas-in [number|origin]
Section titled “neighbor {A.B.C.D|X:X::X:X|String} allowas-in [number|origin]”[Command]
neighbor {A.B.C.D|X:X::X:X|String} allowas-in [number|origin]
[Purpose]
Accept as-path with my AS present in it.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
number | Number of occurrences of AS number, the range is [1,10]. |
origin | Only accept my AS in the as-path if the route was originated in my AS. |
[View]
BGP IPv4 unicast Address-family View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} allowas-in [number|origin] to disable this feature.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# neighbor 1.1.1.1 allowas-in 2
neighbor {A.B.C.D|X:X::X:X|String} as-override
Section titled “neighbor {A.B.C.D|X:X::X:X|String} as-override”[Command]
neighbor {A.B.C.D|X:X::X:X|String} as-override
[Purpose]
Override ASNs in outbound updates if as-path equals remote-as.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
[View]
BGP IPv4 unicast Address-family View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} as-override to delete this configuration.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# neighbor 1.0.0.1 as-override
neighbor {A.B.C.D|X:X::X:X|String} default-originate [route-map route-map]
Section titled “neighbor {A.B.C.D|X:X::X:X|String} default-originate [route-map route-map]”[Command]
neighbor {A.B.C.D|X:X::X:X|String} default-originate [route-map route-map]
[Purpose]
Originate default route to this neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
route-map | Route-map to modify the attributes. |
[View]
BGP Address-family View
[Notes]
BGP does not advertise the default route (0.0.0.0/0) by default, even if it is in the routing table. Use this command when you want to advertise the default route to the peer. Run command no neighbor {A.B.C.D|X:X::X:X|String} default-originate [route-map route-map] to disable this feature.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# neighbor 1.1.1.1 default-originate route-map test
neighbor {A.B.C.D|X:X::X:X|String} next-hop-self [force]
Section titled “neighbor {A.B.C.D|X:X::X:X|String} next-hop-self [force]”[Command]
neighbor {A.B.C.D|X:X::X:X|String} next-hop-self [force]
[Purpose]
Disable the next hop calculation for this neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
force | Set the next hop to self for reflected routes. |
[View]
BGP Address-family View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} next-hop-self [force] to disable this feature.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# neighbor 1.1.1.1 next-hop-self
neighbor {A.B.C.D|X:X::X:X|String} prefix-list list_name {in|out}
Section titled “neighbor {A.B.C.D|X:X::X:X|String} prefix-list list_name {in|out}”[Command]
neighbor {A.B.C.D|X:X::X:X|String} prefix-list list_name {in|out}
[Purpose]
Filter updates to/from this neighbor.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
list_name | Specify the name of IP prefix list. |
[View]
BGP IPv4 unicast Address-family View
[Notes]
Run command no neighbor {A.B.C.D|X:X::X:X|String} prefix-list name [in|out] to disable this configuration.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# neighbor 1.1.1.1 prefix-list test in
neighbor {peer-group|A.B.C.D|X:X::X:X|String} route-map route-map {in|out}
Section titled “neighbor {peer-group|A.B.C.D|X:X::X:X|String} route-map route-map {in|out}”[Command]
neighbor {peer-group|A.B.C.D|X:X::X:X|String} route-map route-map {in|out}
[Purpose]
Apply route map to neighbor.
[Parameters]
Parameter | Description |
---|---|
peer-group | Peer group name. |
A.B.C.D | IPv4 neighbor address. |
X:X::X:X | IPv6 neighbor address. |
String | Interface name or neighbor tag. |
route-map | Route map name. |
[View]
BGP IPv4 unicast Address-family View
[Notes]
The route map needs to be pre-created before it can be bound to a neighbor. A neighbor can only bind to one route-map in in/out directions. Multiple configurations will override. Run command no neighbor {PEER-GROUP|A.B.C.D|X:X::X:X|String} route-map route-map in|out to delete this configuration.
[Use Cases]
sonic# configure terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# neighbor 1.1.1.1 route-map test in
redistribute src_protocol [metric metric_value|route-map route-map]
Section titled “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.
[Parameters]
Parameter | Description |
---|---|
src_protocol | Set source protocol (babel|connected|eigrp|isis|kernel|openfabric|ospf|rip|static|table|vnc|vnc-direct) |
metric_value | Metric for redistributed routes, range from 0 to 4294967295. |
route-map | Route map reference. |
[View]
BGP IPv4 unicast Address-family 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 terminalsonic(config)# router bgp 65100sonic(config-router)# address-family ipv4 unicastsonic(config-router-af)# redistribute ospf metric 200
OSPF View
Section titled “OSPF View”Table 3 OSPF View
Command | Purpose |
---|---|
show ip ospf neighbor [OPTIONs] | Display OSPF neighbor information |
show ip ospf route | Display OSPF route information |
show ip ospf datebase | Display OSPF datebase information |
show ip ospf vrf vrf_name neighbor [OPTIONs] | Display OSPF neighbor information for specified VRF |
show ip ospf interface [ethernet|vlan|link-aggregation|traffic|json] | Display OSPF neighbor information for the interface |
show ip ospf neighbor [OPTIONs]
Section titled “show ip ospf neighbor [OPTIONs]”[Command]
show ip ospf neighbor [OPTIONs]
[Purpose]
Display OSPF neighbor information.
[Options]
Option | Description |
---|---|
all | Display all OSPF neighbor information. |
json | Display in Json format. |
detail | Display neighbor details. |
A.B.C.D | Display neighbor information based on neighbor ID. |
ethernet | Display neighbor information for physical interface. |
vlan | Display neighbor information for VLAN interface. |
link-aggregation | Display neighbor information for aggregation interfaces. |
[View]
Privileged User View
[Use Cases]
sonic# show ip ospf neighborNeighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL40.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
Section titled “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
Section titled “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 count40.0.0.1 40.0.0.1 1062 0x8000003c 0x71ca 1200.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# CkSum40.0.0.2 200.0.0.1 1063 0x80000001 0x2053
show ip ospf vrf vrf_name neighbor [OPTIONs]
Section titled “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]
Parameter | Description |
---|---|
vrf_name | Vrf name. |
[Options]
Option | Description |
---|---|
all | Display all OSPF neighbor information. |
json | Display in Json format. |
detail | Display neighbor details. |
A.B.C.D | Display neighbor information based on neighbor ID. |
ethernet | Display neighbor information for physical interface. |
vlan | Display neighbor information for VLAN interface. |
link-aggregation | Display neighbor information for aggregation interfaces. |
[View]
Privileged User View
[Use Cases]
sonic# show ip ospf vrf 100 neighborVRF Name: Vrf100Neighbor ID Pri State Up Time Dead Time Address Interface RXmtL RqstL DBsmL40.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]
Section titled “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]
Parameter | Description |
---|---|
ethernet | Display neighbor information for physical interfaces. |
vlan | Display neighbor information for VLAN interfaces. |
link-aggregation | Display neighbor information for aggregation interfaces. |
traffic | Display OSPF message count for interface. |
json | Display interface neighbor information in JSON format. |
[View]
Privileged User View
[Use Cases]
sonic# show ip ospf interfaceethernet 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
Section titled “OSPF Config”Table 4 OSPF Config
Command | Purpose |
---|---|
router ospf_type [vrf_name] | Enable OSPF. |
ospf router-id A.B.C.D | Configure the router ID for OSPF. |
area area_id {authentication|default-cost|nssa|stub} | Configure area related parameters. |
auto-cost reference-bandwidth bandwidth | Configure auto-cost reference bandwidth. |
redistribute src_protocol [metric metric_value|route-map route_map] | Introducing routing for other protocols. |
ip ospf area area_id | Enable OSPF function of the interface. |
ip ospf network {broadcast|non-broadcast|point-to-multipoint|point-to-point} | Configure OSPF network type. |
ip ospf cost number | Configure cost value. |
ip ospf priority priority | Configure OSPF router priority. |
ip ospf mtu-ignore | Enable MTU ignore switch. |
ip ospf {dead-interval|hello-interval|retransmit-interval} time | Configure OSPF various time intervals. |
ip ospf authentication [null|message-digest] | Configure OSPF interface authentication method. |
ip ospf authentication-key auth-key | Configure passwords for simple password authentication. |
ip ospf message-digest-key key-id md5 key | Configure password for MD5 authentication. |
ip ospf bfd [profile profile_name] | Configure OSPF and BFD linkage. |
ip ospf ttl ttl_value | Set the TTL value of OSPF message. |
router ospf_type [vrf_name]
Section titled “router ospf_type [vrf_name]”[Command]
router ospf_type [vrf_name]
[Purpose]
Enable OSPF and enter the OSPF configuration view.
[Parameters]
Parameter | Description |
---|---|
ospf_type | The type of OSPF is ospf or ospf6, which is either IPv4 or IPv6 |
vrf_name | VRF name, default VRF if not specified |
[View]
Global Configuration View
[Notes]
Run command no router ospf [vrf_name] to disable OSPF function.
[Use Cases]
sonic# configuresonic(config)# router ospf
ospf router-id A.B.C.D
Section titled “ospf router-id A.B.C.D”[Command]
ospf router-id A.B.C.D
[Purpose]
Configure router ID.
[Parameters]
Parameter | Description |
---|---|
A.B.C.D | router id |
[View]
OSPF Configuration View
[Notes]
Run command no ospf router-id A.B.C.D delete OSPF router id
[Use Cases]
sonic# configuresonic(config)# router ospfsonic(config-router)# ospf router-id 1.1.1.1
area area_id {authentication|default-cost|nssa|stub}
Section titled “area area_id {authentication|default-cost|nssa|stub}”[Command]
area area_id {authentication|default-cost|nssa|stub}
[Purpose]
Configure area related parameters.
[Parameters]
Parameter | Description |
---|---|
area_id | area id |
authentication | Set the area authentication as short answer password authentication or MD5 encryption authentication |
default-cost | Set default cost for nssa or stub domains |
nssa | Configure OSPF area as nssa |
stub | Configure OSPF area as stub |
[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# configuresonic(config)# router ospfasonic(config-router)# area 10 stub
auto-cost reference-bandwidth bandwidth
Section titled “auto-cost reference-bandwidth bandwidth”[Command]
auto-cost reference-bandwidth bandwidth
[Purpose]
Configure auto-cost reference bandwidth.
[Parameters]
Parameter | Description |
---|---|
bandwidth | Reference bandwidth value, the unit is Mb/s, with a value range of 1-4294967. |
[View]
OSPF Configuration View
[Notes]
Run command no auto-cost reference-bandwidth to delete configured reference bandwidth.
[Use Cases]
sonic# configuresonic(config)# router ospfsonic(config-router)# auto-cost reference-bandwidth 10000
redistribute src_protocol [metric metric_value|route-map route-map]
Section titled “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]
Parameter | Description |
---|---|
src_protocol | Set source protocol (connected|isis|kernel|ospf|rip|static|bgp). |
metric_value | Metric for redistributed routes, range from 0 to 16777214. |
route-map | Route map reference. |
[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 terminalsonic(config)# router ospfsonic(config-router)# redistribute connected metric 100
ip ospf area area_id
Section titled “ip ospf area area_id”[Command]
ip ospf area area_id
[Purpose]
Enable OSPF function of the interface.
[Parameters]
Parameter | Description |
---|---|
area_id | area id, it is an IP address or decimal form. If it is a decimal value, the range of values is 0~4294967295 |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf area 10
ip ospf network {broadcast|non-broadcast|point-to-multipoint|point-to-point}
Section titled “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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf network point-to-point
ip ospf cost number
Section titled “ip ospf cost number”[Command]
ip ospf cost number
[Purpose]
Configure the cost value of OSPF network ports.
[Parameters]
Parameter | Description |
---|---|
number | Cost value, the value range is 1~65535 |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf cost 100
ip ospf priority priority
Section titled “ip ospf priority priority”[Command]
ip ospf priority priority
[Purpose]
Configure OSPF router priority.
[Parameters]
Parameter | Description |
---|---|
priority | Priority level, range of values is 0-255, default level is 1 |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf priority 10
ip ospf mtu-ignore
Section titled “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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf mtu-ignore
ip ospf {dead-interval|hello-interval|retransmit-interval}
Section titled “ip ospf {dead-interval|hello-interval|retransmit-interval}”[Command]
ip ospf {dead-interval|hello-interval|retransmit-interval}
[Purpose]
Configure OSPF various time intervals.
[Parameters]
Parameter | Description |
---|---|
dead-interval | Neighbor timeout interval, measured in seconds, with a range of 1 to 65535, default to 40 seconds |
hello-interval | The time interval for sending hello messages, measured in seconds, with a range of 1 to 65535. The default value is 10 seconds |
retransmit-interval | The time interval for retransmitting LSA messages, measured in seconds, with a range of 1 to 65535, and a default of 5 seconds |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf dead-interval 50sonic(config-if-0/40)# ip ospf hello-interval 10sonic(config-if-0/40)# ip ospf retransmit-interval 20
ip ospf authentication [null|message-digest]
Section titled “ip ospf authentication [null|message-digest]”[Command]
ip ospf authentication [null|message-digest]
[Purpose]
Configure OSPF interface authentication method.
[Parameters]
Parameter | Description |
---|---|
null | Configure authentication method as null authentication |
message-digest | Configure the authentication method to MD5 authentication |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf authenticationsonic(config-if-0/40)# ip ospf authentication message-digest
ip ospf authentication-key auth-key
Section titled “ip ospf authentication-key auth-key”[Command]
ip ospf authentication-key auth-key
[Purpose]
Configure simple password authentication password.
[Parameters]
Parameter | Description |
---|---|
auth-key | Authentication password, password length less than or equal to 8 digits |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf authentication-key 123456
ip ospf message-digest-key key-id md5 key
Section titled “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]
Parameter | Description |
---|---|
key_id | Key ID, with a value range of 1-255 |
key | Password for MD5 authentication method, with a length of less than or equal to 16 bits |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf message-digest-key 10 md5 123456
ip ospf bfd [profile profile_name]
Section titled “ip ospf bfd [profile profile_name]”[Command]
ip ospf bfd [profile profile_name]
[Purpose]
Configure OSPF and BFD linkage.
[Parameters]
Parameter | Description |
---|---|
profile_name | The profile name of BFD |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf bfd sw1
ip ospf ttl ttl_value
Section titled “ip ospf ttl ttl_value”[Command]
ip ospfttl ttl_value
[Purpose]
Set the TTL value of OSPF message.
[Parameters]
Parameter | Description |
---|---|
ttl_value | TTL value, the range is 0~255 |
[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# configuresonic(config)# interface ethernet 0/40sonic(config-if-0/40)# ip ospf ttl 10
ISIS View
Section titled “ISIS View”Table 5 ISIS View
Command | Purpose |
---|---|
show isis neighbor | Display ISIS neighbor information. |
show isis neighbor
Section titled “show isis neighbor”[Command]
show isis neighbor
[Purpose]
Display ISIS neighbor information.
[View]
Privileged User View.
[Use Cases]
sonic# show isis neighborArea aster: System Id Interface L State Holdtime SNPA sonic-139 ethernet 0/20 1 Up 29 60eb.5a01.10cd sonic-139 ethernet 0/20 2 Up 29 60eb.5a01.10cd
ISIS Config
Section titled “ISIS Config”Table 6 ISIS Config
Command | Purpose |
---|---|
router isis area_tag | Enabe ISIS domain |
net title | Set network entity title (NET) provided in ISO format |
ip router isis area_tag | Configure an interface to enable ISIS |
router isis area_tag
Section titled “router isis area_tag”[Command]
router isis area_tag
[Purpose]
Enabe ISIS domain.
[Parameters]
Parameter | Description |
---|---|
area_tag | ISIS domain name |
[View]
Global Configuration View
[Notes]
Run command no router isis area_tag to disable ISIS domain.
[Use Cases]
sonic# configure terminalsonic(config)# router isis astersonic(config-router)#
net title
Section titled “net title”[Command]
net title
[Purpose]
Set network entity title (NET) provided in ISO format.
[Parameters]
Parameter | Description |
---|---|
title | Network entity title, XX.XXXX. … .XXX.XX |
[View]
ISIS Configuration View
[Notes]
Run command no net title to unset network entity title.
[Use Cases]
sonic# configure terminalsonic(config)# router isis astersonic(config-router)# net 10.0000.0000.0141.00
ip router isis area_tag
Section titled “ip router isis area_tag”[Command]
ip router isis area_tag
[Purpose]
Configure an interface to enable ISIS
[Parameters]
Parameter | Description |
---|---|
area_tag | ISIS domain name |
[View]
Physical interface/VLAN interface/LAG interface/Loopback interface configuration view
[Notes]
Run command no ip router isis to disable interface ISIS.
[Use Cases]
sonic# configure terminalsonic(config)# interface ethernet 0/0sonic(config-if-0/0)# ip router isis aster