EasyManuals Logo

HPE FlexNetwork 5130 EI Series Layer 3-Ip Services Configuration Guide

HPE FlexNetwork 5130 EI Series
265 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #34 background imageLoading...
Page #34 background image
24
IP addressing configuration examples
Example: Manually specifying an IP address
Network configuration
As shown in Figure 9, 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 9 Network diagram
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 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
# Verify the connectivity between a host on subnet 172.16.1.0/24 and the switch.
<Switch> ping 172.16.1.2
Ping 172.16.1.2 (172.16.1.2): 56 data bytes, press CTRL_C to break
56 bytes from 172.16.1.2: icmp_seq=0 ttl=128 time=7.000 ms
56 bytes from 172.16.1.2: icmp_seq=1 ttl=128 time=2.000 ms
56 bytes from 172.16.1.2: icmp_seq=2 ttl=128 time=1.000 ms
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

Table of Contents

Other manuals for HPE FlexNetwork 5130 EI Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HPE FlexNetwork 5130 EI Series and is the answer not in the manual?

HPE FlexNetwork 5130 EI Series Specifications

General IconGeneral
BrandHPE
ModelFlexNetwork 5130 EI Series
CategorySwitch
LanguageEnglish

Related product manuals