337
route-policy
route-policy-name
: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters, to filter routes or set the route attributes.
Usage guidelines
•
The network to be injected must be available and active in the local IP routing table.
•
The ORIGIN attribute of the route injected with the
network
command is IGP.
•
When you execute the
undo network
command, you must specify the same mask or mask
length/prefix length that you specified for the
network
command. Otherwise, the configuration
cannot be removed.
Examples
# In BGP IPv4 unicast address family view, inject local network 10.0.0.0/16 to the BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] network 10.0.0.0 255.255.0.0
# In BGP-VPN IPv4 unicast address family view, inject local network 10.0.0.0/16 to the BGP routing
table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv4 unicast
[Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0
# In BGP IPv6 unicast address family view, inject local network 2002::/64 to the IPv6 BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv6 unicast
[Sysname-bgp-ipv6] network 2002:: 64
# In BGP-VPN IPv6 unicast address family view, inject local network 2002::/64 to the IPv6 BGP routing
table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv6 unicast
[Sysname-bgp-ipv6-vpn1] network 2002:: 64
network short-cut
Use
network short-cut
to increase the preference for a received EBGP route. This EBGP route is called
shortcut route.
Use
undo network short-cut
to cancel the configuration.
Syntax
In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view:
network
ip-address
[
mask
|
mask-length
]
short-cut
undo
network
ip-address [
mask
|
mask-length
]
short-cut