OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP4+ Commands : network X:X::X:X
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
Last modified date: 10/16/2023