Ip Addressing Configuration Example - H3C S3610-28P Operation Manual

S3610 & s5510 series
Table of Contents

Advertisement

Operation Manual – IP Addressing and Performance
H3C S3610&S5510 Series Ethernet Switches

1.2.2 IP Addressing Configuration Example

I. Network requirements
As shown in
two segments: 172.16.1.0/24 and 172.16.2.0/24.
To enable the hosts on the two network segments to access the external network
through the switch, and enable the hosts on the two network segments to communicate
with each other, do the following:
Assign a primary IP address and a secondary IP address to VLAN-interface 1 on
the switch.
Set the switch as the gateway on all hosts.
II. Network diagram
Figure 1-3 Network diagram for IP addressing configuration
III. Configuration procedure
# Assign a primary IP address and a secondary IP address to VLAN-interface 1.
<Switch> 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
# Set the gateway address to 172.16.1.1 on the PCs attached to the subnet
172.16.1.0/24, and to 172.16.2.1 on the PCs attached to the subnet 172.16.2.0/24.
# Use the ping command to verify the connectivity between the switch and the hosts on
the subnet 172.16.1.0/24.
<Switch> ping 172.16.1.2
Figure
1-3, VLAN-interface 1 on Switch is connected to a LAN comprising
172.16.1.0/24
Host B
172.16.1.2/24
172.16.2.2/24
172.16.2.0/24
Chapter 1 IP Addressing Configuration
Switch
Vlan-int1
172.16.1.1/24
172.16.2.1/24 sub
Host A
1-5

Advertisement

Table of Contents
loading

Table of Contents