Operation Manual – IP Address and Performance
H3C S5600 Series Ethernet Switches
Chapter 1 IP Addressing Configuration
1-5
1.4 IP Address Configuration Examples
1.4.1 IP Address Configuration Example I
I. Network requirement
Assign IP address 129.2.2.1 with mask 255.255.255.0 to VLAN-interface 1 of the
switch.
II. Network diagram
Figure 1-3
Network diagram for IP address configuration
III. Configuration procedure
# Configure an IP address for VLAN-interface 1.
<Switch> system-view
[Switch] interface Vlan-interface 1
[Switch-Vlan-interface1] ip address 129.2.2.1 255.255.255.0
1.4.2 IP Address Configuration Example II
I. Network requirements
As shown in
Figure 1-4
, VLAN-interface 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 of the two networks.