Assigning an ip address to an interface, Displaying and maintaining ip addressing, Ip address configuration example – H3C Technologies H3C S12500 Series Switches User Manual
Page 32: Configuration guidelines, Configuration procedure
19
41B
Assigning an IP address to an interface
An interface must have an IP address to communicate with other hosts. You can either manually assign
an IP address to an interface, or configure the interface to obtain an IP address through BOOTP, DHCP,
or PPP address negotiation.
You can only manually assign an IP address to an interface on the switch.
An interface can have one primary address and multiple secondary addresses.
Typically, you need to configure a primary IP address for an interface. If the interface connects to
multiple subnets, configure primary and secondary IP addresses on the interface so the subnets can
communicate with each other through the interface.
178B
Configuration guidelines
•
An interface can have only one primary IP address. A newly configured primary IP address
overwrites the previous one.
•
The primary and secondary IP addresses you assign to the interface can be located on the same
network segment, but different interfaces on your device must reside on different network segments.
179B
Configuration procedure
To assign an IP address to an interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A
3.
Assign an IP address to the
interface.
ip address ip-address { mask |
mask-length } [ sub ]
By default, no IP address is
assigned to the interface.
42B
Displaying and maintaining IP addressing
Execute display commands in any view.
Task Command
Display IP configuration and statistics for the specified
or all Layer 3 interfaces.
display ip interface [ interface-type interface-number ]
Display brief IP configuration information for the
specified or all Layer 3 interfaces.
display ip interface [ interface-type
[ interface-number ] ] brief
43B
IP address configuration example
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches