Configuring ip addresses, Configuring an ip address to a loopback interface – H3C Technologies H3C S3100 Series Switches User Manual
Page 111

1-3
bits for the host ID and thus have only 126 (2
7
– 2) hosts in each subnet. The maximum number of hosts
is thus 64,512 (512 × 126), 1022 less after the network is subnetted.
Class A, B, and C networks, before being subnetted, use these default masks (also called natural
masks): 255.0.0.0, 255.255.0.0, and 255.255.255.0 respectively.
Configuring IP Addresses
S3100 Series Ethernet Switches support assigning IP addresses to VLAN interfaces and loopback
interfaces. Besides directly assigning an IP address to a VLAN interface, you may configure a VLAN
interface to obtain an IP address through BOOTP or DHCP as alternatives. If you change the way an
interface obtains an IP address, from manual assignment to BOOTP for example, the IP address
obtained from BOOTP will overwrite the old one manually assigned.
z
This chapter only covers how to assign an IP address manually. For the other two approaches to IP
address assignment, refer to the part discussing DHCP in this manual.
z
As for an S3100-SI series Ethernet switch, only the management VLAN interface can be assigned
an IP address.
Configuring an IP address to a loopback interface
Table 1-2 Configure an IP address to a loopback interface
Operation
Command
Remarks
Enter system view
system-view
––
Enter loopback interface view
interface LoopBack
interface-number
––
Assign an IP address to the
loopback interface
ip address ip-address { mask |
mask-length }
Required
No IP address is assigned by
default.
z
A newly specified IP address overwrites the previous one if there is any.
z
The IP address of a VLAN interface must not be on the same network segment as that of a
loopback interface on a device.