H3C S7500E Series Command Manual page 99

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IP Addressing and Performance
H3C S7500E Series Ethernet Switches
mask: Subnet mask in dotted decimal notation.
mask-length: Subnet mask length, the number of consecutive ones in the mask.
sub: Secondary IP address for the interface.
Description
Use the ip address command to assign an IP address and mask to the interface.
Use the undo ip address command to remove all IP addresses.
Use the undo ip address ip-address { mask | mask-length } command to remove the
primary IP address.
Use the undo ip address ip-address { mask | mask-length } sub command to remove
a secondary IP address.
By default, no IP address is assigned to any interface.
When assigning IP addresses to an interface, consider the following:
You can assign only one primary IP address to an interface.
The primary and secondary IP addresses can be located in the same network
segment.
Before removing the primary IP address, remove all secondary IP addresses.
You can assign a secondary IP address only when the interface is not configured
to obtain one through DHCP.
Related commands: display ip interface.
Examples
# Assign VLAN-interface 1 a primary IP address and a secondary IP address, with
subnet masks being 255.255.255.0.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 129.12.0.1 255.255.255.0
[Sysname-Vlan-interface1] ip address 202.38.160.1 255.255.255.0 sub
Chapter 1 IP Addressing Configuration
1-5
Commands

Advertisement

Table of Contents
loading

Table of Contents