OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : network
network
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 form of this command to remove a network route entry.
Command Syntax
network A.B.C.D (backdoor|)
network A.B.C.D/M (backdoor|)
network A.B.C.D mask A.B.C.D (backdoor|)
network A.B.C.D mask A.B.C.D route-map WORD (backdoor|)
network A.B.C.D route-map WORD (backdoor|)
network A.B.C.D/M route-map WORD (backdoor|)
no network A.B.C.D
no network A.B.C.D/M
Parameters
A.B.C.D
IP prefix <network>, for example, 35.0.0.0
A.B.C.D/M
IP prefix <network>/<length>, for example., 35.0.0.0/8
backdoor
BGP backdoor route
routemap
Route map used to modify the attributes
WORD
Name of the route map
mask
Network mask, for example, 255.255.0.0
A.B.C.D
Network mask, e.g., 255.255.0.0
Default
No default value is specified
Command Mode
Router Address-family mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example illustrates a Class-A address configured as a network route. The natural Class-A network prefix mask length of 8 is internally derived, that is, 2.0.0.0/8.
(config)#router bgp 1
(config-router)#address-family ipv4 unicast
(config-router-af)#network 2.0.0.0
Last modified date: 10/16/2023