beautypg.com

Assigning an ip address to an interface, Configuration guidelines, Configuration procedure – H3C Technologies H3C S12500-X Series Switches User Manual

Page 30: Displaying and maintaining ip addressing, Enabling ip conflict notification

background image

19

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 DHCP. If you

change the way an interface obtains an IP address, the new IP address will overwrite the previous

address.
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.

Configuration guidelines

Follow these guidelines when you assign an IP address to an interface:

An interface can have only one primary IP address. A newly configured primary IP address
overwrites the previous one.

You cannot assign secondary IP addresses to an interface that obtains an IP address through DHCP.

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.

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.

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

This manual is related to the following products: