R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

384
network (BGP/BGP-VPN instance view)
Syntax
network ip-address [ mask | mask-length ] route-policy route-policy-name
undo network ip-address [ mask | mask-length ]
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
ip-address: Destination IP address.
mask: Mask of the network address, in dotted decimal notation.
mask-length: Mask length, in the range of 0 to 32.
route-policy-name: Routing policy applied to the route. The name is a case-sensitive string of 1 to 63
characters.
Description
Use network to inject a network to the local BGP routing table.
Use undo network to remove a network from the BGP routing table.
By default, no network route is injected.
The network route to be injected must exist in the local IP routing table, and using a routing policy makes
route management more flexible.
The ORIGIN attribute of the network route injected with the network command is IGP.
Examples
# In BGP view, inject the network segment 10.0.0.0/16.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] network 10.0.0.0 255.255.0.0
# In BGP-VPN instance view, advertise the network segment 10.0.0.0/16 (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] network 10.0.0.0 255.255.0.0
network short-cut (BGP/BGP-VPN instance view)
Syntax
network ip-address [ mask | mask-length ] short-cut
undo network ip-address [ mask | mask-length ] short-cut
View
BGP view, BGP-VPN instance view