3com MSR 20-20 참조 매뉴얼

다운로드
페이지 2742
983
network (BGP/BGP-VPN instance view)
Syntax
network ip-address [ mask | mask-length ] [ short-cut | route-policy 
route-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