23
IP address configuration example
Network requirements
As shown in
, Ethernet 1/1 on the router 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
router, and to enable the hosts on the LAN to communicate with each other:
•
Assign a primary IP address and a secondary IP address to Ethernet 1/1 on the router.
•
Set the primary IP address of the router as the gateway address of the PCs on subnet 172.16.1.0/24,
and set the secondary IP address of the router as the gateway address of the PCs on subnet
172.16.2.0/24.
Figure 8
Network diagram
Configuration procedure
# Assign a primary IP address and a secondary IP address to Ethernet 1/1.
<Router> system-view
[Router] interface ethernet 1/1
[Router-Ethernet1/1] ip address 172.16.1.1 255.255.255.0
[Router-Ethernet1/1] 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.
Verifying the configuration
# Ping a host on subnet 172.16.1.0/24 from the router to check the connectivity.
<Router> ping 172.16.1.2
Ping 172.16.1.2 (172.16.1.2): 56 data bytes, press escape sequence to break
Summary of Contents for MSR 2600 Series
Page 6: ...We appreciate your comments...
Page 33: ...18 AC vlan1 quit...
Page 118: ...103...