3com 5500-ei pwr Guia De Referência

Página de 1314
 
3-9 
[Sysname-rip] import-route static cost 4 
# Set the default cost and redistribute OSPF routes with the default cost. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z.  
[Sysname] rip 
[Sysname-rip] default cost 3 
[Sysname-rip] import-route ospf 
network 
Syntax 
network network-address
 
undo
 network network-address 
View 
RIP view 
Parameters 
network-address
: Network/IP address of an interface, in dotted decimal notation. 
Description 
Use the network command to enable RIP on an interface attached to the specified network segment. 
Use the undo network command to disable RIP on the interface attached to the specified network 
segment. 
RIP runs only on the interface attached to the specified network. For an interface not on the specified 
network, RIP neither receives/sends routes on it nor forwards interface route through it. Therefore, you 
need to specify the network after enabling RIP to validate RIP on a specific interface. 
By default, RIP is disabled on all interfaces. 
The differences between the network and rip work commands are as follows: 
z
 
The network command enables RIP on an interface attached to the specified network segment. 
z
 
The rip work command enables an interface to receive and send RIP packets. 
Related commands: rip work
Examples 
# Enable RIP on the interface with the network address 129.102.0.0. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z.  
[Sysname] rip 
[Sysname-rip] network 129.102.0.0 
peer 
Syntax 
peer ip-address
 
undo peer ip-address