BGP configuration
address-family
This command enters the configuration mode for the BGP process to configure the protocol information transmission parameters.
The use of a negative form (no) of the command removes the configured protocol information transmission parameters.
Syntax:
[no] address-family { ipv4 | ipv6 } unicast
Parameters:
- ipv4 – ipv4 family;
- ipv6 – ipv6 family.
Required privilege level:
10
Command mode
CONFIG-BGP
CONFIG-BGP-VRF
Example
esr(config-bgp)# address-family ipv4
address-family
This command defines the type of configured routing information and the transition to this configuration mode
The use of a negative form (no) of the command removes the configured protocol information transmission parameters.
Syntax:
[no] address-family { ipv4 | ipv6 | vpnv4 } unicast
Parameters:
- ipv4 – ipv4 family;
- ipv6 – ipv6 family;
- vpnv4 – vpnv4 family;
- l2vpn vpls – l2vpn family.
Required privilege level:
10
Command mode:
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# address-family ipv4
allow-local-as
This command enables the mode in which the reception of routes in the BGP attribute, AS Path of which includes the numbers of process autonomous system, is allowed.
The use of a negative form (no) of the command disables this feature.
Syntax
allow-local-as <NUMBER>
no allow-local-as
Parameters
<NUMBER> – threshold amount of instances of autonomous system number in the AS Path attribute at which the route will be accepted, the range of acceptable values [1..10].
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# allow-local-as
clear bgp
This command resets all or a specific BGP process.
Syntax
clear bgp [ <AS> ] [ vrf <NAME_VRF> ] [ neighbor { <ADDR> | <IPV6_ADDR> } ]
Parameters
<AS> – autonomous system number, takes values of [1..4294967295];
<ADDR> – neighbor’s IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
<IPV6-ADDR> – neighbor IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF];
<NAME-VRF> – VRF instance name, set by the string of up to 31 characters, within which the BGP sessions will be reset.
Required privilege level
10
Command mode
ROOT
Example
esr# clear bgp
esr# clear bgp 1000
cluster-id
This command sets the Route-Reflector identifier of the cluster to which the router BGP process belongs.
The use of a negative form (no) of the command removes the identifier.
Syntax
cluster-id <ID>
no cluster-id
Parameters
<ID> – Route-Reflector cluster identifier, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-BGP-VRF
Example
esr(config-bgp-af)# cluster-id 1.1.1.1
default-originate
This command sets the mode in which the default route is always sent to the BGP neighbor in the update along with other routes.
The use of a negative form (no) of the command disables this feature.
Syntax
[no] default-originate
Parameters
The command does not contain parameters.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMALY
CONFIG-BGP-VRF-NEIGHBOR-FAMALY
Example
esr(config-bgp-neighbor)# default-originate
description
This command defines neighbor description.
The use of a negative form (no) of the command removes description.
Syntax
description <DESCRIPTION>
no description
Parameters
<DESCRIPTION> – neighbor description, set by the string of up to 255 characters.
Required privilege level
10
Command mode
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# description "ISP_RTK"
ebgp-multihop
This command allows connections to neighbors that are located not in directly connected subnets.
The use of a negative form (no) of the command disables this feature.
Syntax
[no] ebgp-multihop <NUM>
Parameters
<NUM> – maximum amount of hops when installing EBGP (used for TTL).
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-NEIGHBOR
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# ebgp-multihop
flow-spec enable
This command sets the mode of broadcasting of flow-spec information when working with a BGP neighbor or a group of BGP neighbors.
The use of a negative form (no) of the command sets the default value.
Syntax
[no] flow-spec enable
Parameters
None.
Default value
Disabled.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMALY
CONFIG-BGP-VRF-NEIGHBOR-FAMALY
Example
esr(config-bgp-group)# flow-spec enable
ipv6 router bgp log-neighbor-changes
This command enables logging of IPv6 BGP neighbors state changes.
The use of a negative form (no) of the command disables logging of IPv6 BGP neighbors state changes.
Syntax
[no] ipv6 router bgp log-neighbor-changes
Parameters
The command does not contain parameters.
Default value
Disabled.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ipv6 router bgp log-neighbor-changes
ipv6 router bgp maximum-paths
This command enables ECMP and defines the maximum amount of equal routes to a destination point.
The use of a negative form (no) of the command disables ECMP.
Syntax
ipv6 router bgp maximum-paths <VALUE>
no ipv6 router bgp maximum-paths
Parameters
<VALUE> – amount of valid equal IPv6 routes to the target, takes the values of [1..16].
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# ipv6 router bgp maximum-paths 14
neighbor
This command adds BGP neighbor and switchs to the BGP process parameters configuration mode. The use of a negative form (no) of the command removes neighbor router parameters from configuration.
Syntax
[no] neighbor {<ADDR> |<IPV6-ADDR>}
Parameters
<ADDR> – neighbor’s IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].
<IPV6-ADDR> – client IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF].
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-VRF-BGP
Example
esr(config-bgp)# neighbor 192.168.0.2
esr(config-bgp-neighbor)#
next-hop-self
This command sets the mode in which all updates are sent to BGP neighbor with the IP address of a local router outgoing interface as the next-hop.
The use of a negative form (no) of the command disables this feature.
Syntax
[no] next-hop-self
Parameters
The command does not contain parameters.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMALY
CONFIG-BGP-VRF-NEIGHBOR-FAMALY
Example
esr(config-bgp-neighbor)# next-hop-self
peer-group
This command creates a group of BGP neighbors with the specified name and switches to the configuration mode of the group parameters.
The use of a negative form (no) of the command removes BGP group with the specified name.
Syntax
[no] peer-group <NAME>
Parameters
<NAME> – group name, set by the string of up to 31 characters.
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-BGP-VRF
Example
esr(config-bgp)# peer-group list1
peer-group
This command applies the settings described in the specified BGP group to the BGP group or BGP neighbor.
The use of a negative form (no) of the command cancels applying of the settings described in the specified BGP group
Syntax
peer-group <NAME>
no peer-group
Parameters
<NAME> – group name, set by the string of up to 31 characters.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-af)# peer-group list1
preference
This command defines the precedence of the routes received from a neighbor.
The use of a negative form (no) of the command sets the default value.
Syntax
preference <VALUE>
no preference
Parameters
<VALUE> – neighbor routes precedence, takes values in the range of [1..255].
Default value
170
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMALY
CONFIG-BGP-VRF-NEIGHBOR-FAMALY
Example
esr(config-bgp-neighbor)# preference 30
remote-as
This command sets the number of BGP neighbor autonomous system.
The use of a negative form (no) of the command removes a number of autonomous system.
Syntax
remote-as <AS>
no remote-as
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# remote-as 20
remove-private-as
This command sets the mode in which private numbers of autonomous systems are removed from the AS Path routes BGP attribute before sending an update (in accordance with RFC 6996).
The use of a negative form (no) of the command disables this feature.
Syntax
[no] remove-private-as <ACTION>
Parameters
<ACTION> – an action indicating which private AS should be removed or replaced. One of the following:
- all – remove all private AS inclusions from the original AS path;
- nearest – delete all private AS to the last (right) public AS in the original AS path;
- replace – replace all private AS with the AS number during which this command is processed.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMILY
CONFIG-BGP-VRF-NEIGHBOR-FAMILY
Example
esr(config-bgp-neighbor-af)# remove-private-as
router bgp
This command adds BGP process to the system and switchs to the BGP process parameters configuration mode.
The use of a negative form (no) of the command removes a BGP process from the system.
Syntax
[no] router bgp <AS>
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# router bgp 1000
esr(config-bgp)#
Added BGP process with autonomous system 1000.
router bgp log-neighbor-changes
This command enables logging of BGP neighbors state changes.
The use of a negative form (no) of the command disables logging of BGP neighbors state changes.
Syntax
[no] router bgp log-neighbor-changes
Parameters
The command does not contain parameters.
Default value
Disabled.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# router bgp log-neighbor-changes
router bgp maximum-paths
This command enables ECMP and defines the maximum amount of equal routes to a destination point.
The use of a negative form (no) of the command disables ECMP.
Syntax
router bgp maximum-paths <VALUE>
no router bgp maximum-paths
Parameters
<VALUE> – amount of valid equal routes to the target, takes the values of [1..16].
Default value
Disabled.
Required privilege level
10
Command mode
CONFIG
Example
esr(config)# router bgp maximum-paths 14
route-reflector-client
This command specifies BGP neighbor as a Route-Reflector client.
The use of a negative form (no) of the command disables this feature.
Syntax
[no] route-reflector-client
Parameters
The command does not contain parameters.
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# route-reflector-client
router-id
This command sets router identifier.
The use of a negative form (no) of the command removes the identifier.
Syntax
router-id <ID>
no router-id
Parameters
<ID> – router identifier, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-BGP-VRF
Example
esr(config-bgp-af)# router-id 1.1.1.1
show ip bgp
This command displays the BGP routing table or detailed information about a specific route when using filters.
Syntax
show ip bgp [ <AS> [ vrf <VRF> ] { <ADDR> | <ADDR/LEN> ] [flow-spec]
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the routing protocol will operate.
<ADDR> – destination IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].
<ADDR/LEN> – IP subnet, defined as AAA.BBB.CCC.DDD/EE where each part AAA-DDD takes values of [0..255] and EE takes values of [1..32].
flow-spec – output flow-spec information from all BGP neighbors.
Required privilege level
1
Command mode
ROOT
Example 1
esr# show ip bgp
Terra# show ip bgp
Status codes: u – unicast, b – broadcast, m – multicast a – anycast
* – valid, > – best
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Path
*> u 10.0.10.0/24 10.115.0.1 100 i
*> u 0.0.0.0/0 10.115.0.1 100 i
* u 14.0.10.0/24 10.115.0.1 100 i
Example 2
Sword# show ip bgp 75.0.0.0
75.0.0.0/24 via 115.0.0.40 on gi1/0/14 [bgp20 2000-01-15] (AS90?)
Administrative Distance: 68
Type: unicast
Origin: Incomplete
AS PATH: 1 30 70 90
Next Hop: 115.0.0.40
MED: 0
Local Preference: 100
Community: (1:555)
Valid, Best
show ip bgp summary
This command displays information about the status of connections with BGP neighbors.
Syntax
show ip bgp <AS> [ vrf <VRF> ] summary
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the routing protocol will operate.
Required privilege level
1
Command mode
ROOT
Example
esr# show ip bgp show ip bgp 65054 summary
Mon March 06 08:42:22 2017
BGP router identifier 10.0.0.1, local AS number 65054
BGP activity 635190/1270406 prefixes
Neighbor AS MsgRcvd MsgSent Up/Down St/PfxRcd
---------------------- ------------- ---------- ---------- ---------- -------
95.156.65.5 12389 366960 2260 16:38:50 635189
100.100.100.1 65535 0 0 911:24:27 Connect
123.1.1.200 5448 14224 3673129 207:25:28 0
192.168.16.3 65530 1003 1145 16:38:48 1
192.168.16.4 65529 0 0 16:38:56 Connect
192.168.16.100 48858 0 0 911:24:27 Connect
192.168.16.147 65111 17 120065 00:12:13 0
192.168.17.18 21127 0 0 16:38:56 Connect
192.168.17.114 200 0 0 16:38:56 Connect
192.168.17.155 65500 0 0 16:38:56 Connect
192.168.25.124 59831 0 0 16:38:56 Active
200.0.0.1 65200 0 0 16:38:29 IdleAS4
show ip bgp neighbors
This command displays information about all or specified BGP neighbor.
Syntax
show ip bgp <AS> [ vrf <VRF> ] neighbors [ <ADDR> [ routes | advertise-routes ] ]
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the routing protocol will operate.
<ADDR> – neighbor’s IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255].
routes – when specifying a command, route information received from a neighbor is displayed.
advertise-routes – when you specify a command, it displays routing information advertised to a neighbor.
Required privilege level
1
Command mode
ROOT
Example 1
esr# show ip bgp 20 neighbors
BGP neighbor is 10.115.0.1
BGP state: Established
Neighbor address: 10.115.0.1
Neighbor AS: 20
Neighbor ID: 115.0.0.1
Neighbor caps: refresh restart-aware AS4
Session: internal multihop AS4
Source address: 10.115.0.2
Hold timer: 137/180
Keepalive timer: 10/60
Incoming prefix-list: from_ISP
Outgoing prefix-list: to_ISP
Incoming route-map: comingS
Outgoing route-map: AS_prepend
Uptime: 12 s
BFD address: 192.168.1.2
BFD state: Up
BFD interval: 3.000 s
BFD timeout: 15.000 s
Example 2
esr# show ip bgp 20 neighbors 10.115.0.1 routes
Status codes: u – unicast, b – broadcast, m – multicast a – anycast
* – valid, > – best
Origin codes: i – IGP, e – EGP, ? – incomplete
Network Next Hop Metric LocPrf Path
*> u 10.0.10.0/24 10.115.0.1 100 i
*> u 0.0.0.0/0 10.115.0.1 100 i
* u 14.0.10.0/24 10.115.0.1 100 i
Example 3
esr# show ip bgp 20 neighbors 115.0.0.40 advertise-routes
Status codes: u – unicast, b – broadcast, m – multicast a – anycast
* – valid, > – best
Origin codes: i – IGP, e – EGP, ? - incomplete
Network Next Hop Metric LocPrf Path
*> u 1.1.1.0/24 115.0.0.1 215 100 20 i
*> u 1.1.0.0/24 115.0.0.1 215 100 20 i
*> u 2.2.2.0/24 115.0.0.1 215 100 20 i
show ipv6 bgp
This command displays the BGP routing table or detailed information about a specific route when using filters.
Syntax
show ipv6 bgp [<AS> [vrf <VRF> [<IPV6-ADDR> |<IPV6-ADDR/LEN>] |<IPV6-ADDR> |<IPV6-ADDR/LEN>] [flow-spec]
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the routing protocol will operate.
<IPV6-ADDR> – destination IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF].
<IPV6-ADDR/LEN> – a subnet, defined as X:X:X:X::X/EE where each part takes values in hexadecimal format [0..FFFF] and EE takes values of [1..128].
flow-spec – output flow-spec information from all BGP neighbors.
Required privilege level
1
Command mode
ROOT
Example 1
esr# show ipv6 bgp 20
Status codes: u - unicast, b - broadcast, m - multicast a - anycast
* - valid, > - best
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Path
*> u 222::/120 44:44:44::44 0 100 1 ?
*> u 40::75:0/120 44:44:44::44 0 100 1 ?
*> u 40::77:0/120 44:44:44::44 0 100 1 ?
* u 2002::7300:0/120 44:44:44::44 0 100 1 ?
Example 2
Sword# show ipv6 bgp 20 202::7300:0/120
202::7300:0/120 via 2002::7300:a on gi1/0/14 [bgp20 14:43:48] (AS1000e)
Administrative Distance: 170
Type: unicast
Origin: EGP
AS PATH: 1000
Next Hop: 2002::7300:a (fe80::6666:b3ff:fe06:cb18)
MED: 0
Local Preference: 188
Valid, Best
show ipv6 bgp neighbors
This command displays information about all or specified BGP neighbor.
Syntax
show ipv6 bgp <AS> [ vrf<VRF> ] neighbors [ <IPV6-ADDR> [ routes | advertise-routes ] ]
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the routing protocol will operate.
<IPV6-ADDR> – neighbor’s IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF].
routes – when specifying a command, route information received from a neighbor is displayed.
advertise-routes – when you specify a command, it displays routing information advertised to a neighbor.
Required privilege level
1
Command mode
ROOT
Example 1
esr# show ipv6 bgp 20 neighbors
BGP neighbor is 2002::7300:c
BGP state: Established
Neighbor address: 2002::7300:c
Neighbor AS: 1
Neighbor ID: 77.0.0.1
Neighbor caps: refresh
Session: external
Source address: 2002::7300:1
Hold timer: 127/154
Keepalive timer: 1/34
BGP neighbor is 2002::7300:a
BGP state: Established
Neighbor address: 2002::7300:a
Neighbor AS: 1000
Neighbor ID: 10.10.10.10
Neighbor caps: refresh AS4
Session: external AS4
Source address: 2002::7300:1
Hold timer: 157/180
Keepalive timer: 32/60
Example 2
esr# show ipv6 bgp 20 neighbors 2002::7300:a routes
Status codes: u - unicast, b - broadcast, m - multicast a - anycast
* - valid, > - best
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Path
* u 2002::7300:0/120 2002::7300:a 0 188 1000 e
*> u 220::7300:0/120 2002::7300:a 0 188 1000 e
*> u 22::7300:0/120 2002::7300:a 0 188 1000 e
*> u 2002::40:0/120 2002::7300:a 0 188 1000 e
Example 3
esr# show ipv6 bgp 20 neighbors 2002::7300:a advertise-routes
Status codes: u - unicast, b - broadcast, m - multicast a - anycast
* - valid, > - best
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Path
*> u 77::77:0/120 2002::7300:1 100 20 i
*> u 33::33:0/120 2002::7300:1 100 20 i
*> u 44::44:44/128 2002::7300:1 100 20 i
*> u 222::/120 44:44:44::44 0 100 20 1 ?
*> u 40::75:0/120 44:44:44::44 0 100 20 1 ?
show ipv6 bgp summary
This command displays information about the status of connections with BGP neighbors.
Syntax
show ipv6 bgp <AS> [ vrf <VRF> ] summary
Parameters
<AS> – autonomous system number, takes values of [1..4294967295].
<VRF> – VRF instance name, set by the string of up to 31 characters, within which the routing protocol will operate.
Required privilege level
1
Command mode
ROOT
Example
esr# sh ipv6 bgp 1 summary
Tue May 10 19:12:12 2011
BGP router identifier 0.0.0.1, local AS number 1
BGP activity 0/0 prefixes
Neighbor AS MsgRcvd MsgSent Up/Down St/PfxRcd
--------------- ------------- ---------- --------- ---------- -----------
2a14::2 10001 3 3 00:00:48 0
show ip bgp vpnv4
This command displays information on vpnv4 routes. Specifying a prefix in the command displays detailed information about the prefix
Syntax
show ip bgp vpnv4 unicast { all | rd <RD> | vrf <NAME_VRF> } [ neighbor <IP> { routes | advertise-routes } ] [ <PREFIX> ]
Parameters
all – when the command all is specified, the full vpnv4 route information is displayed;
rd – when the command rd is specified, information about routes with the specified RD is displayed;
vrf — when the command vrf is specified, the vpnv4 route information for the specified VRF is displayed;
routes – when specifying a command, route information received from a neighbor is displayed;
advertise-routes – when you specify a command, it displays routing information advertised to a neighbor;
<RD> – Route distinguisher value, specified in one of the following forms:
- <ASN>:<nn> — where <ASN> may take values [1..65535], nn may take values [1..65535];
- <ADDR>:<nn> — where <ADDR> specified as AAA.BBB.CCC.DDD/EE, AAA-DDD may take values [0..255], nn may take values [1..65535];
- <4ASN>:<nn> — where <4ASN> may take values [1..4294967295], nn may take values [1..65535];
- <NAME_VRF> – VRF instance name, set by the string of up to 31 characters;
<IP> – neighbor IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
<PREFIX> – prefix, defined as AAA.BBB.CCC.DDD/EE where AAA-DDD takes values of [0..255] and EE takes values of [1..32].
Required privilege level
1
Command mode
ROOT
Example 1
esr# sh ip bgp vpnv4 unicast all
Status codes: * - valid, > - best, i - internal, S - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Codes Route Distinguisher IP Prefix Next hop Metric Label LocPrf Weight Path
----- --------------------- ------------------ --------------- ---------- ------- ---------- ------ ----------------
*>i 65000:10001 10.100.106.1/32 6.6.6.6 -- 16 100 0 ?
*> 65000:10002 10.20.0.0/24 -- -- 17 -- -- ?
*> 65000:10002 10.20.1.0/24 -- -- 17 -- -- ?
*>i 65000:10001 10.100.0.4/30 2.2.2.2 -- 16 100 0 i
*> 65000:10002 172.18.0.0/30 -- -- 17 -- -- ?
*>i 65000:10002 10.30.0.0/24 5.5.5.5 -- 17 100 55 i
*>i 65000:10001 10.100.104.0/24 2.2.2.2 -- 16 100 0 i
*> 65000:10001 10.100.105.0/24 -- -- 16 -- -- ?
*>i 65000:10001 10.100.106.0/24 6.6.6.6 -- 16 100 0 ?
*> 65000:10001 203.203.203.203/32 -- -- 16 -- -- ?
*> 65000:10001 202.202.202.202/32 -- -- 16 -- -- ?
*>i 65000:10001 10.100.100.0/24 2.2.2.2 -- 16 100 0 i
*> 65000:10001 10.100.0.0/30 -- -- 16 -- -- ?
*> 65000:10001 10.100.102.0/24 -- -- 16 -- -- ?
Example 2
esr# sh ip bgp vpnv4 unicast all 10.100.106.0/24
BGP routing table entry for 65000:10001 10.100.106.0/24
Next hop: 6.6.6.6
Label: 16
AS path: --
Origin: Incomplete
Local preference: 100
Extended Community: RT:65000:10001
Weight: 0
show ip bgp l2vpn vpls
This command displays information about all received l2vpn routes.
Syntax
show ip bgp l2vpn vpls { all | rd <ASN:nn>} [neighbor <ADDR> advertise-routes] [ ve-id <ID> block-offset <ID> ]
Parameters
- all – when the command all is specified, the full l2vpn route information is displayed;
- rd – when the command rd is specified, information about routes with the specified RD is displayed;
- routes – when specifying a command, route information received from a neighbor is displayed;
- advertise-routes – when you specify a command, it displays routing information advertised to a neighbor;
- <RD> – Route distinguisher value, specified in one of the following forms:
- <ASN>:<nn> — where <ASN> may take values [1..65535], nn may take values [1..65535];
- <ADDR>:<nn> — where <ADDR> specified as AAA.BBB.CCC.DDD/EE, AAA-DDD may take values [0..255], nn may take values [1..65535];
- <4ASN>:<nn> — where <4ASN> may take values [1..4294967295], nn may take values [1..65535].
- <IP> – neighbor IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
- <ID> – take value [1..65535], specifies the vpls edge or block-offset identifier.
Required privilege level
1
Command mode
ROOT
Example
ESR-R# show ip bgp l2vpn vpls all
Status codes: * - valid, > - best, i - internal, S - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Codes Route Distinguisher VID VBO VBS Next hop Metric LocPrf Weight Path
----- --------------------- ----- ----- ----- --------------- ---------- ---------- ------ -------------------
*>i 65502:100 3 1 8 192.168.9.9 -- 100 0 i
*> 65502:102 2 1 10 -- -- -- --
*> 65502:100 2 1 10 -- -- -- --
*>i 65502:102 1 1 10 192.168.7.7 -- 100 0 i
*>i 65502:100 1 1 10 192.168.7.7 -- 100 0 i
send-community extended
Enables sending of the extended community parameter in adverts sent to a neighbor. By default, extended community options are removed from adverts that are sent. For VPNv4/L2VPN correct operation, sending extended community must be enabled.
The use of a negative form (no) of the command sets the default value.
Syntax
[no] send-community extended
Parameters
The command does not contain parameters
Required privilege level
10
Default value
Denied.
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR-FAMILY
CONFIG-BGP-VRF-NEIGHBOR-FAMILY
Example
esr(config-bgp-neighbor-af)# send-community extended
timers error-wait
This command sets the minimum and maximum delay time during which it is forbidden to establish a connection, in order to protect against frequent disconnections.
The use of a negative form (no) of the command sets the default value.
Syntax
timers error-wait <TIME1> <TIME2>
no timers error-wait
Parameters
<TIME1> – time in seconds, takes values of [1..65535]:
<TIME2> – time in seconds, takes values of [1..65535].
Default value
60 and 300
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-VRF-BGP
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-af)# timers error-wait 90 450
timers holdtime
This command sets time interval after which the opposing party is considered to be unavailable. The timer starts after establishing a neighborhood relationship and starts counting from 0. The timer is reset when each reply to a keepalive message from the opposite side is received. It is recommended to set the timer value to 3 * keepalive.
The use of a negative form (no) of the command sets the default value.
Syntax
timers holdtime <TIME>
no timers holdtime
Parameters
<TIME> – time in seconds, takes values of [1..65535].
Default value
180
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-VRF-BGP
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-af)# timers holdtime 360
timers keepalive
This command sets the time interval after which the connection with the opposing party will be checked.
The use of a negative form (no) of the command sets the default value.
Syntax
timers keepalive <TIME>
no timers keepalive
Parameters
<TIME> – time in seconds, takes values of [1..65535].
Default value
60
Required privilege level
10
Command mode
CONFIG-BGP
CONFIG-VRF-BGP
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-af)# timers keepalive 120
update-source
This command defines the IP/IPv6 address of the router that will be used as the source IP/IPv6 address in BGP routing information updates sent.
The use of a negative form (no) of the command removes a specified source IP/IPv6 address.
Syntax
update-source { <ADDR> | <IPV6-ADDR> }
no source-address
Parameters
<ADDR> – source IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255];
<IPV6-ADDR> – source IPv6 address, defined as X:X:X:X::X where each part takes values in hexadecimal format [0..FFFF].
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# update-source 10.100.100.2
vrf
This command creates an instance of the BGP process in the VRF and switches to the BGP process settings mode in the specified VRF
The use of a negative form (no) of the command removes BGP VRF from the system.
Syntax
[no] ip vrf <VRF>
Parameters
<VRF> – VRF instance name, set by the string of up to 31 characters.
Required privilege level
10
Command mode
CONFIG-BGP
Example
esr(config-bgp)# vrf xx
esr(config-bgp-vrf)#
weight
This command sets the weight of routes received from a given BGP neighbor or group of BGP neighbors.
The use of a negative form (no) of the command sets the default value.
Syntax
weight <WEIGHT>
no weight
Parameters
<WEIGHT> – the value of the route weight, takes the values [0..65535].
Default value
0
Required privilege level
10
Command mode
CONFIG-BGP-GROUP
CONFIG-BGP-VRF-GROUP
CONFIG-BGP-NEIGHBOR
CONFIG-BGP-VRF-NEIGHBOR
Example
esr(config-bgp-neighbor)# weight 200