OcNOS SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP4+ Commands
BGP4+ Commands
This chapter describes the BGP4+ configuration commands.
address-family ipv6 (see address-family in Chapter 1, BGP Commands)
bgp g-shut (see bgp g-shut in n Chapter 1, BGP Commands)
neighbor activate (see neighbor activate in Chapter 1, BGP Commands)
neighbor attribute-unchanged (see neighbor attribute-unchanged in Chapter 1, BGP Commands)
neighbor capability dynamic (see neighbor capability graceful-restart in Chapter 1, BGP Commands)
neighbor de-activate (see neighbor de-activate in Chapter 1, BGP Commands)
neighbor default-originate (see neighbor de-activate in Chapter 1, BGP Commands)
neighbor distribute-list (see neighbor distribute-list in Chapter 1, BGP Commands)
neighbor filter-list (see neighbor filter-list in Chapter 1, BGP Commands)
neighbor maximum-prefix (see neighbor maximum-prefix in Chapter 1, BGP Commands)
neighbor next-hop-self (see neighbor next-hop-self in Chapter 1, BGP Commands)
neighbor peer-group (see neighbor peer-group in Chapter 1, BGP Commands)
neighbor prefix-list (see neighbor prefix-list in Chapter 1, BGP Commands)
neighbor remove-private-AS (see neighbor remove-private-AS in Chapter 1, BGP Commands)
neighbor route-map (see neighbor route-map in Chapter 1, BGP Commands)
neighbor route-reflector-client (see neighbor route-reflector-client in Chapter 1, BGP Commands)
neighbor send-community (see neighbor send-community in Chapter 1, BGP Commands)
neighbor unsuppress-map (see neighbor unsuppress-map in Chapter 1, BGP Commands)
redistribute (see redistribute in Chapter 1, BGP Commands)
aggregate-address X:X::X:X/M
Use this command to configure BGP aggregate entries.
Aggregates are used to minimize the size of routing tables. Aggregation combines the characteristics of several different routes and advertises a single route. This command creates an aggregate entry in the BGP routing table if any more-specific BGP routes are available in the specified range. Using the summary-only parameter advertises the prefix only, suppressing more-specific routes to neighbors.
The as-set parameter creates an aggregate entry advertising the path for this route, consisting of all elements contained in all paths being summarized. Use the as-set parameter to reduce the size of path information by listing the AS number only once, even if it was included in multiple paths that were aggregated. The as-set parameter is useful when aggregation of information results in an incomplete path information.
Use the no parameter with this command to disable this function.
Command Syntax
aggregate-address X:X::X:X/M
aggregate-address X:X::X:X/M as-set
aggregate-address X:X::X:X/M as-set summary-only
aggregate-address X:X::X:X/M summary-only
aggregate-address X:X::X:X/M summary-only as-set
no aggregate-address X:X::X:X/M
no aggregate-address X:X::X:X/M as-set
no aggregate-address X:X::X:X/M as-set summary-only
no aggregate-address X:X::X:X/M summary-only
no aggregate-address X:X::X:X/M summary-only as-set
Parameters
X:X::X:X/M
Aggregate IPv6 prefix
as-set
Generate AS set path information
summary-only
Filter more specific routes from updates
Command Mode
Address Family mode
Default
By default, aggregate address is disabled
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router bgp 100
(config-router)#neighbor 2.2.2.2 remote-as 100
(config-router)#neighbor 3.3.3.3 remote-as 200
(config-router)#address-family ipv6
(config-router-af)#aggregate-address 3ffe::/32 as-set summary-only
clear bgp * ipv6
Use this command to reset the BGP IPv6 connection for all peers.
Note: The soft in or in and soft out or out in the BGP commands performs the same functionality. User can use any of the commands to soft reset.
Command Syntax
clear bgp ipv6 *
clear bgp ipv6 * in
clear bgp ipv6 * in prefix-filter
clear bgp ipv6 * out
clear bgp ipv6 * soft
clear bgp ipv6 * soft in
clear bgp ipv6 * soft out
clear ip bgp * ipv6 unicast in
clear ip bgp * ipv6 unicast out
clear ip bgp * ipv6 unicast soft
clear ip bgp * ipv6 unicast soft in
clear ip bgp * ipv6 unicast soft out
Parameters
in
Clear incoming advertised routes.
prefix-filter
 
Push out prefix-list ORF and do inbound soft reconfig.
out
Clear outgoing advertised routes.
soft
Clear all incoming and outgoing IPv6 routes.
in
Soft reconfig inbound update.
out
Soft reconfig outbound update.
unicast
Unicast prefixes
in
Clear incoming advertised routes.
out
Soft reconfig outbound update
soft
Clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Clear outgoing advertised routes
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ip bgp * ipv6 unicast soft out
clear bgp ipv6 (A.B.C.D|X:X::X:X)
Use this command to reset the BGP neighbor addresses (IPv4 or IPv6) for IPv6 peers.
Note: The soft in or in and soft out or out in the BGP commands performs the same functionality. User can use any of the commands to soft reset.
Command Syntax
clear bgp ipv6 (A.B.C.D|X:X::X:X)
clear bgp ipv6 (A.B.C.D|X:X::X:X) in
clear bgp ipv6 (A.B.C.D|X:X::X:X) in prefix-filter
clear bgp ipv6 (A.B.C.D|X:X::X:X) out
clear bgp ipv6 (A.B.C.D|X:X::X:X) soft
clear bgp ipv6 (A.B.C.D|X:X::X:X) soft in
clear bgp ipv6 (A.B.C.D|X:X::X:X) soft out
Parameters
in
Clear incoming advertised routes
prefix-filter
 
Push out prefix-list ORF and do inbound soft reconfig
out
Clear outgoing advertised routes
soft
Clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#clear bgp ipv6 10.5.2.7
clear bgp ipv6 <1-4294967295>
Use this command to reset the BGP connection with a specified AS (Autonomous System) number for IPv6 peers.
Command Syntax
clear bgp ipv6 <1-4294967295>
clear bgp ipv6 <1-4294967295> in
clear bgp ipv6 <1-4294967295> in prefix-filter
clear bgp ipv6 <1-4294967295> out
clear bgp ipv6 <1-4294967295> soft
clear bgp ipv6 <1-4294967295> soft in
clear bgp ipv6 <1-4294967295> soft out
Parameters
in
Clear incoming advertised routes.
prefix-filter
 
Push out prefix-list ORF and do inbound soft reconfig.
out
Clear outgoing advertised routes.
soft
Clear both incoming and outgoing routes.
in
Soft reconfig inbound update.
out
Soft reconfig outbound update.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#clear bgp ipv6 12345
clear bgp ipv6 external
Use this command to reset the BGP connection for all external IPv6 peers or for a specified external IPv6 peer.
Command Syntax
clear bgp ipv6 external
clear bgp ipv6 external in prefix-filter
clear bgp ipv6 external soft
clear bgp ipv6 external soft in
clear bgp ipv6 external soft out
clear bgp ipv6 external WORD in
clear bgp ipv6 external WORD out
Parameters
in
Clear incoming advertised routes
prefix-filter
 
Push out prefix-list ORF and do inbound soft reconfig
soft
Clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
WORD
Name of external IPv6 peer
in
Soft reconfig inbound update
out
Soft reconfig outbound update
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#clear bgp ipv6 external soft in
clear bgp ipv6 peer-group
Use this command to reset the BGP connection for all members of a peer group.
Note: The soft in or in and soft out or out in the BGP commands performs the same functionality. User can use any of the commands to soft reset.
Command Syntax
clear bgp ipv6 peer-group WORD
clear bgp ipv6 peer-group WORD in
clear bgp ipv6 peer-group WORD in prefix-filter
clear bgp ipv6 peer-group WORD out
clear bgp ipv6 peer-group WORD soft
clear bgp ipv6 peer-group WORD soft in
clear bgp ipv6 peer-group WORD soft out
Parameters
in
Clear incoming advertised routes
prefix-filter
 
Push out prefix-list ORF and do inbound soft reconfig
out
Clear outgoing advertised routes
soft
Clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
WORD
BGP peer-group name
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ip bgp peer-group P1
clear bgp ipv6 unicast flap-statistics
Use this command to reset IPv6 BGP route flap statistics.
Command Syntax
clear bgp ipv6 unicast flap-statistics
clear bgp ipv6 unicast flap-statistics X:X::X:X
clear bgp ipv6 unicast flap-statistics X:X::X:X/M
clear ip bgp ipv6 unicast flap-statistics
clear ip bgp ipv6 unicast flap-statistics X:X::X:X
clear ip bgp ipv6 unicast flap-statistics X:X::X:X/M
Parameters
X:X::X:X
IP prefix (network) for example, 35.0.0.0
X:X::X:X/M
IP prefix (network and length) for example, 35.0.0.0/8
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ip bgp ipv6 unicast flap-statistics 1:2::3:4/7
clear ipv6 bgp * vrf
Use this command to reset an IPv6 BGP connection for all virtual routing forwarding addresses.
Note: The soft in or in and soft out or out in the BGP commands performs the same functionality. User can use any of the commands to soft reset.
Command Syntax
clear ipv6 bgp * vrf WORD
clear ipv6 bgp * vrf WORD in
clear ipv6 bgp * vrf WORD out
clear ipv6 bgp * vrf WORD soft
clear ipv6 bgp * vrf WORD soft in
clear ipv6 bgp * vrf WORD soft out
Parameters
in
Clear incoming advertised routes
out
Clear outgoing advertised routes
soft
Clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
WORD
BGP peer-group name
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ipv6 bgp * vrf BGPpeer7
clear ipv6 bgp X:X::X:X vrf
Use this command to reset the specified VPNv6 Routing/Forwarding (VRF) instance for BGP connections. If the neighbor address is specified with this command, it clears the specified connection. If no address is specified, this command clears all the BGP routes.
Note: The soft in or in and soft out or out in the BGP commands performs the same functionality. User can use any of the commands to soft reset.
Command Syntax
clear ipv6 bgp (X:X::X:X) vrf WORD
clear ipv6 bgp X:X::X:X vrf WORD in
clear ipv6 bgp X:X::X:X vrf WORD out
clear ipv6 bgp X:X::X:X vrf WORD soft in
clear ipv6 bgp X:X::X:X vrf WORD soft out
Parameters
vrf
Specify a VPN routing/forwarding instance for IPv6
WORD
VPN routing/forwarding instance name
in
Clear incoming advertised routes
out
Clear outgoing advertised routes
soft
Clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ipv6 bgp vrf 10:10::0:12 vrf vrfname
clear ip bpg ipv6 unicast table-map
Use this command to apply the modified table map or route map rules to the BGP routes in the existing IP routing table.
Command Syntax
clear ip bpg ipv6 unicast table-map (vrf (VRFNAME|all|default))
Parameters
vrf
Select a VPN Routing/Forwarding Instance.
VRFNAME
Specify a VPN Routing/Forwarding instance name.
all
Select all VRFs.
default
Select default VRFs.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ip bgp ipv6 unicast table-map vrf all
 
 
 
network X:X::X:X
Use this command to specify the networks to be advertised by the BGP routing process. A unicast network address without a mask is accepted if it falls into the natural boundary of its class. A class-boundary mask is derived if the address matches its natural class-boundary.
Use the backdoor parameter to specify a backdoor route to a BGP border router that will provide better information about the network. For data to be advertised by BGP, its routing table must include a route to the specified network. This command specifies the networks to be advertised. The network command works if the network being advertised is known to the router.
The backdoor parameter enables a route to be the preferred route even if it has a greater distance. A network that is specified as a backdoor network is dynamically assigned an administrative distance of 200 ensuring that IGP learned routes are preferred. If a backdoor network is not sourced by the local router, the network is learned from the external routers. If the route is learned from eBGP for a backdoor network, the distance is set to 20 or 200.
Use the no parameter with this command to remove an entry.
Command Syntax
network X:X::X:X/M
network X:X::X:X/M backdoor
network X:X::X:X/M route-map WORD (backdoor|)
no network X:X::X:X/M
no network X:X::X:X/M backdoor
no network X:X::X:X/M route-map WORD (backdoor|)
Parameters
X:X::X:X
IPv6 prefix <network>, for example, 3ffe::
backdoor
Specify a BGP backdoor route
WORD
Name of the route map
Default
No default value is specified
Command Mode
IPv6 Address Family mode, IPv6 VRF Address Family mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#router bgp 10
(config-router)#network 172.26.0.0/16
If Router1 receives updates from 172.10.0.0 via two routing protocols RIP (distance 120) and eBGP (distance 20), router1 chooses the shorter route. Use the backdoor parameter to allow Router1 to learn about 172.10.0.0 via RIP.
(config)#router rip
(config)#network 172.10.0.0
(config)#router bgp 65001
(config)#neighbor 5ffe:507::2 remote-as 65001
(config-af)#address-family ipv6 unicast
(config-af)#network 8ffe:507::/64
(config-af)#neighbor 5ffe:507::2 activate
(config-af)#exit-address-family