# Set the gateway address to 172.16.1.1 on the PCs attached to the subnet 172.16.1.0/24, and to
ctivity.
ss CTRL_C to break
equence=1 ttl=255 time=25 ms
ytes=56 Sequence=2 ttl=255 time=27 ms
: bytes=56 Sequence=3 ttl=255 time=26 ms
ce=4 ttl=255 time=26 ms
ed
information shows the switch can communicate with the hosts on the subnet 172.16.1.0/24.
e subnet 172.16.2.0/24 from the switch to check the connectivity.
2: bytes=56 Sequence=5 ttl=255 time=26 ms
tatistics ---
subnet 172.16.2.0/24.
Static
N
.1.2 through domain name
N
ic DNS configuration
172.16.2.1 on the PCs attached to the subnet 172.16.2.0/24.
# Ping a host on the subnet 172.16.1.0/24 from the switch to check the conne
<Switch> ping 172.16.1.2
PING 172.16.1.2: 56 data bytes, pre
tes=56 S
Reply from 172.16.1.2: by
b
Reply from 172.16.1.2:
.2
Reply from 172.16.1
Reply from 172.16.1.2: bytes=56 Sequen
Reply from 172.16.1.2: bytes=56 Sequence=5 ttl=255 time=26 ms
--- 172.16.1.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) receiv
0.00% packet loss
round-trip min/avg/max = 25/26/27 ms
The output
# Ping a host on th
<Switch> ping 172.16.2.2
PING 172.16.2.2: 56 data bytes, press CTRL_C to break
Reply from 172.16.2.2: bytes=56 Sequence=1 ttl=255 time=25 ms
Reply from 172.16.2.2: bytes=56 Sequence=2 ttl=255 time=26 ms
Reply from 172.16.2.2: bytes=56 Sequence=3 ttl=255 time=26 ms
Reply from 172.16.2.2: bytes=56 Sequence=4 ttl=255 time=26 ms
Reply from 172.16.2.
--- 172.16.2.2 ping s
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 25/25/26 ms
The output information shows the switch can communicate with the hosts on the
Domain Name Resolution Configuration Example
etwork requirements
The switch uses static domain name resolution to access host 10.1
host.com.
etwork diagram
Figure 8-5
Network diagram for stat
Configuration procedure
# Configure a mapping between host name host.com and IP address 10.1.1.2.
<Sysname> system-view
[Sysname] ip host host.com 10.1.1.2
8-6