Network requirements, Configuration procedure, Verifying the configuration – H3C Technologies H3C S12500 Series Switches User Manual
Page 33

20
NOTE:
By default, Ethernet, VLAN, and aggregate interfaces are down. To configure such an interface, bring the
interface up by executing the undo shutdown command.
180B
Network requirements
As shown in
663H
Figure 8
, 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 to enable the hosts on the LAN to communicate with each other:
•
Assign a primary IP address and a secondary IP address to VLAN-interface 1 on the switch.
•
Set the primary IP address of the switch as the gateway address of the PCs on subnet 172.16.1.0/24,
and set the secondary IP address of the switch as the gateway address of the PCs on subnet
172.16.2.0/24.
Figure 8 Network diagram
181B
Configuration procedure
# Assign a primary IP address and a secondary IP address to VLAN-interface 1.
[Switch] interface vlan-interface 1
[Switch-Vlan-interface1] ip address 172.16.1.1 255.255.255.0
[Switch-Vlan-interface1] ip address 172.16.2.1 255.255.255.0 sub
# Set the gateway address to 172.16.1.1 on the PCs attached to subnet 172.16.1.0/24, and to 172.16.2.1
on the PCs attached to subnet 172.16.2.0/24.
182B
Verifying the configuration
# Ping a host on subnet 172.16.1.0/24 from the switch to check the connectivity.
Vlan-int1
172.16.1.1/24
172.16.2.1/24 sub
172.16.1.0/24
172.16.1.2/24
172.16.2.0/24
172.16.2.2/24
Host A
Host B
Switch
- H3C SR8800 H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module H3C S6800 Series Switches H3C S3100V2 Series Switches H3C S12500-X Series Switches H3C S9800 Series Switches