3com S7906E Guide De Référence

Page de 2327
 
1-36 
[Sysname-bgp-vpn1] peer 10.1.2.1 group test 
import-route (BGP/BGP-VPN instance view) 
Syntax 
import-route  protocol [ process-id  | all-processes  ] [ med  med-value  |  route-policy 
route-policy-name ] * 
undo import-route protocol process-id | all-processes 
View 
BGP view/BGP-VPN instance view  
Default Level 
2: System level 
Parameters 
protocol: Redistributes routes from the specified routing protocol, which can be direct, isisospfrip or 
static at present.  
process-id: Process ID, in the range 1 to 65535. The default is 1. It is available only when the protocol is 
isisospf, or rip.  
all-processes: Redistributes routes from all the processes of the specified protocol. This keyword 
takes effect only when the protocol is ripospf, or isis.  
med-value: Specifies a MED value for redistributed routes, ranging from 0 to 4294967295. If the 
argument is not specified, the cost of the redistributed route is used as its MED in the BGP routing 
domain. 
route-policy-name: Name of a routing policy used to filter redistributed routes, a string of 1 to 19 
characters. 
Description 
Use the import-route command to configure BGP to redistribute routes from a specified routing 
protocol and advertise redistributed routes.  
Use the undo import-route command to disable route redistribution from a routing protocol. 
By default, BGP does not redistribute routes from other protocols. 
The ORIGIN attribute of routes redistributed with the import-route command is incomplete.  
Examples 
# In BGP view, redistribute routes from RIP. 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] import-route rip 
# In BGP-VPN instance view, redistribute routes from RIP (the VPN has been created). 
<Sysname> system-view 
[Sysname] bgp 100 
[Sysname-bgp] ipv4-family vpn-instance vpn1 
[Sysname-bgp-vpn1] import-route rip