983

network (BGP/BGP-VPN instance view)

Syntax network ip-address [ mask mask-length ] [ short-cutroute-policyroute-policy-name ]

undo network ip-address [ mask mask-length ] [ short-cut]

View BGP view/BGP-VPN instance view

Parameters ip-address: Destination IP address.

mask: Mask of the network address, in dotted decimal notation.

mask-length: Mask length, in the range 0 to 32.

short-cut: Specifies the route to use the local preference. If the route is an EBGP route whose preference is higher than the local one, using this keyword can configure the EBGP route to use the local preference, so the route is hard to become the optimal route.

route-policy-name: Routing policy applied to the route. The name is a string of 1 to 19 characters.

Description Use the network command to inject a network to the local BGP routing table.

Use the undo network command to remove a network from the routing table.

By default, no network route is injected.

Note that:

The network route must be in the local IP routing table, and using a routing policy makes route management more flexible.

The route injected to the BGP routing table using the network command has the ORIGIN attribute as 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, inject 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

Page 983
Image 983
3Com MSR 50, MSR 30 manual Network BGP/BGP-VPN instance view, 983