HP A5830 Configuration Manual page 133

Layer 2 lan switching
Hide thumbs Also See for A5830:
Table of Contents

Advertisement

Configuration procedure
# Associate IP subnet 192.168.5.0/24 with VLAN 100.
<DeviceC> system-view
[DeviceC] vlan 100
[DeviceC-vlan100] ip-subnet-vlan ip 192.168.5.0 255.255.255.0
[DeviceC-vlan100] quit
# Associate IP subnet 192.168.50.0/24 with VLAN 200.
[DeviceC] vlan 200
[DeviceC-vlan200] ip-subnet-vlan ip 192.168.50.0 255.255.255.0
[DeviceC-vlan200] quit
# Configure interface GigabitEthernet 1/0/1 1 to permit packets of VLAN 100 to pass through.
[DeviceC] interface GigabitEthernet 1/0/11
[DeviceC-GigabitEthernet1/0/11] port link-type hybrid
[DeviceC-GigabitEthernet1/0/11] port hybrid vlan 100 tagged
Please wait... Done.
[DeviceC-GigabitEthernet1/0/11] quit
# Configure interface GigabitEthernet 1/0/12 to permit packets of VLAN 200 to pass through.
[DeviceC] interface GigabitEthernet 1/0/12
[DeviceC-GigabitEthernet1/0/12] port link-type hybrid
[DeviceC-GigabitEthernet1/0/12] port hybrid vlan 200 tagged
Please wait... Done.
[DeviceC-GigabitEthernet1/0/12] quit
# Associate interface GigabitEthernet 1/0/1 with IP subnet-based VLANs 100 and 200.
[DeviceC] interface GigabitEthernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] port link-type hybrid
[DeviceC-GigabitEthernet1/0/1] port hybrid vlan 100 200 untagged
Please wait... Done.
[DeviceC-GigabitEthernet1/0/1] port hybrid ip-subnet-vlan vlan 100
[DeviceC-GigabitEthernet1/0/1] port hybrid ip-subnet-vlan vlan 200
[DeviceC-GigabitEthernet1/0/1] return
Verification
# Display the IP subnet information for all VLANs.
<Device C> display ip-subnet-vlan vlan all
VLAN ID:
100
Subnet Index
====================================================
0
VLAN ID:
200
Subnet Index
====================================================
0
# Display the IP subnet-based VLAN information on GigabitEthernet 1/0/1.
<DeviceC> display ip-subnet-vlan interface GigabitEthernet 1/0/1
Interface: GigabitEthernet1/0/1
VLAN ID
IP Address
192.168.5.0
IP Address
192.168.50.0
Subnet-Index
IP ADDRESS
Subnet Mask
255.255.255.0
Subnet Mask
255.255.255.0
NET MASK
126

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents