Ip addressing configuration example, Network requirements – H3C Technologies H3C S7500E Series Switches User Manual
Page 33

3-4
to enable the device to communicate with all hosts on the LAN, you need to assign a primary IP
address and a secondary IP address to the interface.
Follow these steps to assign an IP address to an interface:
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.
z
The primary IP address you assigned to the interface can overwrite the old one if there is any.
z
You cannot assign secondary IP addresses to an interface that has DHCP, configured.
z
The primary and secondary IP addresses you assign to the interface can be located on the same
network segment.
IP Addressing Configuration Example
Network requirements
As shown in
, a port in VLAN 1 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 hosts on the two network segments to communicate with the external network through
the switch, and the hosts on the LAN can communicate with each other, do the following:
z
Assign two IP addresses to VLAN-interface 1 on the switch.
z
Set the switch as the gateway on all PCs in the two networks.