3Com Switch 8800 Advanced Software V5 Configuration Guide

208 CHAPTER 22: IP ADDRESSING CONFIGURATION
n
This chapter only covers how to assign an IP address manually. For IP address
assignment through DHCP, refer to
“DHCP Address Allocation” on page 717.
This section includes:
“Assigning an IP Address to an Interface” on page 208
“IP Addressing Configuration Example” on page 208
Assigning an IP Address
to an Interface
You may assign an interface multiple IP addresses, one primary and multiple
secondaries, to connect multiple logical subnets on the same physical subnet.
Follow these steps to assign an IP address to an interface:
c
CAUTION:
The primary IP address you assigned to the interface can overwrite the previous
one if there is any.
You cannot assign a secondary IP address when the interface is configured to
obtain an IP address through DHCP or to borrow one through IP unnumbered.
IP Addressing
Configuration Example
Network requirements
As shown in Figure 62, the Vlan-interface1 on a switch is connected to a LAN
comprising two segments: 172.16.1.0/24 and 172.16.2.0/24.
To enable the switch to communicate with the two network segments respectively
and the PCs on the LAN can communicate with each other, do the following:
Assign two IP addresses to Vlan-interface1 on the switch.
Set the switch as the gateway on all PCs.
To do... Use the command... Remarks
Enter system view system-view --
Enter interface view interface interface-type
interface-number
--
Assign an IP address to the
interface
ip address ip-address { mask |
mask-length } [ sub ]
Required
No IP address is assigned by
default.