H3C LS-5100-16P-SI-OVS-H3 Configuration page 249

Low-end ethernet switches
Table of Contents

Advertisement

VLAN
H3C Low-End Ethernet Switches Configuration Examples
[SwitchA-Ethernet1/0/7] port access vlan 200
[SwitchA-Ethernet1/0/7] quit
# Create a protocol template for VLAN 100 to carry IP and a protocol template for VLAN
300 to carry Appletalk.
[SwtichA] vlan 100
[SwitchA-vlan100] protocol-vlan ip
[SwitchA-vlan100] quit
[SwitchA] vlan 300
[SwitchA-vlan300] protocol-vlan at
[SwitchA-vlan300] quit
# Create a user-defined protocol template for VLAN 100 to carry ARP for IP
communication, assuming that Ethernet_II encapsulation is used.
[SwitchA] vlan 100
[SwitchA-vlan100] protocol-vlan mode ethernetii etype 0806
# Configure Ethernet 1/0/10 as a hybrid port permitting the frames of VLAN 100 and
VLAN 300 to pass through untagged.
[SwitchA] interface Ethernet 1/0/10
[SwitchA-Ethernet1/0/10] port link hybrid
[SwitchA-Ethernet1/0/10] port hybrid vlan 100 300 untagged
# Associate Ethernet 1/0/10 with all the protocol templates of VLAN 100 and VLAN 300.
[SwitchA-Ethernet1/0/10] port hybrid protocol-vlan vlan 100 all
[SwitchA-Ethernet1/0/10] port hybrid protocol-vlan vlan 300 all
[SwitchA-Ethernet1/0/10] quit
# Configure GigabitEthernet 1/1/1 as a trunk port permitting the frames of VLAN 100,
VLAN 200, and VLAN 300 to pass through with VLAN tags.
[SwitchA] interface GigabitEthernet 1/1/1
[SwitchA-GigabitEthernet1/1/1] port link-type trunk
[SwitchA-GigabitEthernet1/1/1] port trunk permit vlan 100 200 300
Configure Switch B
# Create VLAN 100, VLAN 200, and VLAN 300 on Switch B as you have done on
Switch A.
# Assign Ethernet 1/0/2 and Ethernet 1/0/3 to VLAN 200 and VLAN 100 respectively.
<SwitchB> system-view
[SwitchB] interface Ethernet 1/0/2
[SwitchB-Ethernet1/0/2] port access vlan 200
[SwitchB-Ethernet1/0/2] quit
[SwitchB] interface Ethernet 1/0/3
[SwitchB-Ethernet1/0/3] port access vlan 100
[SwitchB-Ethernet1/0/3] quit
Chapter 2 Configuration Examples
2-6

Advertisement

Table of Contents
loading

Table of Contents