H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-34
Note:
Use the import-route bgp allow-ibgp command with care!
Examples
# Import RIP routes as type-2 routes, with the route tag of 33 and the route cost of 50.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] ospf 1
[H3C-ospf-1] import-route rip type 2 tag 33 cost 50
3.1.28 network
Syntax
network ip-address ip-mask
undo network ip-address ip-mask
View
OSPF area view
Parameters
ip-address: Address of the network segment where the interface resides.
ip-mask: IP address wildcard shielded text (similar to the complement of the IP address
mask).
Description
Use the network command to enable an interface to run the OSPF protocol.
Use the undo network command to disable an interface from running OSPF.
By default, the interface does not belong to any area.
To run OSPF on an interface, the master IP address of this interface must be in the
network segment specified by this command. If only the slave IP address of the
interface is in the network segment specified by this command, this interface will not
run OSPF.
Related commands: ospf.
Examples
# Specify the interfaces whose master IP addresses are in the segment of 10.110.36.0
to run OSPF and specify the number of the OSPF area (where these interfaces reside)
as 6.