Operation Manual – IP Address and Performance OptimizationH3C S5100-SI/EI Series Ethernet Switches Chapter 1 IP Addressing Configuration1-6III. Configuration procedure# Configure an IP address for VLAN-interface 1. system-view[Switch] interface vlan-interface 1[Switch-Vlan-interface1] ip address 129.2.2.1 255.255.255.01.4.2 IP Address Configuration Example III. Network requirementsAs shown in Figure 1-4, a port in VLAN 1 on a switch is connected to a LAN comprisingtwo 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 externalnetwork through the switch, and the hosts on the LAN can communicate with eachother, 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.II. Network diagramFigure 1-4 Network diagram for IP address configurationIII. Configuration procedure# Assign a primary IP address and a secondary IP address to VLAN-interface 1. system-view[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