HP VPN Firewall Appliances Network Management Command Reference

484
Default command level
2: System level
Examples
# Enable BGP logging on peers going up and down.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] log-peer-change
network (BGP/BGP-VPN instance view)
Use network to inject a network to the local BGP routing table.
Use undo network to remove the configuration.
Syntax
network ip-address [ mask | mask-length ] [ route-policy route-policy-name ]
undo network ip-address [ mask | mask-length ]
Default
No network route is injected.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
ip-address: Specifies a destination IP address.
mask: Specifies a mask of the network address, in dotted decimal notation.
mask-length: Specifies a mask length, in the range of 0 to 32.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
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 to the BGP routing table.
<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 to the BGP routing table. (The
VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1