HP 5120 EI Series Lan Switching Configuration Manual page 126

Hide thumbs Also See for 5120 EI Series:
Table of Contents

Advertisement

Configure VLAN interfaces on Switch A and configure the PCs to enable Layer 3 communication
between the PCs.
Figure 39 Network diagram
Configuration procedure
Configure Switch A:
1.
# Create VLAN 5 and assign GigabitEthernet 1/0/1 to it.
<SwitchA> system-view
[SwitchA] vlan 5
[SwitchA-vlan5] port GigabitEthernet 1/0/1
# Create VLAN 10 and assign GigabitEthernet 1/0/2 to it.
[SwitchA-vlan5] vlan 10
[SwitchA-vlan10] port GigabitEthernet 1/0/2
[SwitchA-vlan10] quit
# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.
[SwitchA] interface vlan-interface 5
[SwitchA-Vlan-interface5] ip address 192.168.0.10 24
[SwitchA-Vlan-interface5] quit
# Create VLAN-interface 10 and configure its IP address as 192.168.1.20/24.
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 192.168.1.20 24
[SwitchA-Vlan-interface10] return
Configure the default gateway of PC A as 192.168.0.10.
2.
Configure the default gateway of PC B as 192.168.1.20.
3.
Verifying the configurations
The PCs can ping each other.
1.
Display brief information about Layer 3 interfaces on Switch A to verify the configuration.
2.
<SwitchA> display ip interface brief
*down: administratively down
(s): spoofing
Interface
Vlan-interface5
Vlan-interface10
Physical Protocol IP Address
up
up
192.168.0.10
up
up
192.168.1.20
117
Description
Vlan-inte...
Vlan-inte...

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5500 ei series5500 si series

Table of Contents