Ip Address - H3C IE4300 Command Reference Manual

Industrial switch series
Hide thumbs Also See for IE4300:
Table of Contents

Advertisement

Related commands
display ip interface

ip address

ip address
Use
ip address
Use
undo ip address
Syntax
ip address ip-address { mask-length | mask } [sub ]
undo ip address ip-address { mask-length | mask } [ irf-member member-id |
sub ]
Default
No IP address is assigned to an interface.
Views
Interface view
Predefined user roles
network-admin
Parameters
ip-address
mask-length
the value range is 1 to 32.
: Specifies the subnet mask in dotted decimal notation.
mask
: Assigns a secondary IP address to the interface.
sub
Usage guidelines
Use the command to assign a primary or secondary IP address to an interface.
An interface can have only one primary IP address. If you execute this command multiple times to
specify different primary IP addresses on an interface, the most recent configuration takes effect. 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.
You cannot assign secondary IP addresses to an interface that obtains an IP address through
BOOTP IP unnumbered, or DHCP.
If you do not specify any parameters, the
from the interface. The
removes the primary IP address. The
command removes a secondary IP address.
sub
The primary and secondary IP addresses assigned to the interface can be located on the same
network segment. Different interfaces on your device must reside on different network segments.
Examples
# Assign VLAN-interface 10 a primary IP address 129.12.0.1 and a secondary IP address
202.38.160.1, with subnet masks both 255.255.255.0.
<Sysname> system-view
[Sysname] interface vlan-interface 10
to assign an IP address to the interface.
to remove the IP address from the interface.
: Specifies the IP address of the interface, in dotted decimal notation.
: Specifies the subnet mask length in the range of 1 to 31. For a loopback interface,
undo ip address ip-address { mask | mask-length }
undo ip address
undo ip address ip-address { mask | mask-length }
5
command removes all IP addresses
command

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ie4300-mIe4320

Table of Contents