H3C S5500-EI Series Configuration Manual page 153

Layer 2 - lan switching
Hide thumbs Also See for S5500-EI Series:
Table of Contents

Advertisement

# Configure port GigabitEthernet 1/0/1 as an upstream port.
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port isolate-user-vlan promiscuous
[SwitchA-GigabitEthernet1/0/1] quit
# Create isolate-user-VLAN interface 2, and configure it with an IP address.
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 202.38.160.1 255.255.255.0
# Enable local proxy ARP on isolate-user-VLAN interface 2.
[SwitchA-Vlan-interface2] local-proxy-arp enable
# Create VRRP group 1, and configure the virtual IP address of VRRP group 1 as 202.38.160.1 1 1.
[SwitchA-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
# Configure the priority of Switch A as 1 10 in VRRP group 1.
[SwitchA-Vlan-interface2] vrrp vrid 1 priority 110
# Configure Switch A to operate in preemptive mode and configure the preemption delay as 5 seconds.
[SwitchA-Vlan-interface2] vrrp vrid 1 preempt-mode timer delay 5
# Configure VRRP group 1 to track a specified track entry.
[SwitchA-Vlan-interface2] vrrp vrid 1 track 1 reduced 30
[SwitchA-Vlan-interface2] quit
# Create track entry 1 and associate the track entry with the physical status of port GigabitEthernet
1/0/1.
[SwitchA] track 1 interface GigabitEthernet 1/0/1
# Create secondary VLAN 20, and isolate users in VLAN 20 at Layer 2.
[SwitchA] vlan 20
[SwitchA-vlan20] isolated-vlan enable
[SwitchA-vlan20] quit
# Create secondary VLAN interface 20.
[SwitchA] interface Vlan-interface 20
[SwitchA-Vlan-interface20] quit
# Create secondary VLAN interface 40.
[SwitchA] vlan 40
[SwitchA-vlan40] quit
[SwitchA] interface Vlan-interface 40
[SwitchA-Vlan-interface40] quit
# Configure GigabitEthernet 1/0/10 as a hybrid port, and configure it to send the packets from VLANs
2, 20, and 40 with VLAN tags kept.
[SwitchA] interface GigabitEthernet 1/0/10
[SwitchA-GigabitEthernet1/0/10] port link-type hybrid
[SwitchA-GigabitEthernet1/0/10] port hybrid vlan 2 20 40 tagged
[SwitchA-GigabitEthernet1/0/10] port hybrid pvid vlan 2
# Configure GigabitEthernet 1/0/1 1 as a hybrid port, and configure it to send the packets from VLANs
2, 20, and 40 with VLAN tags kept.
[SwitchA] interface GigabitEthernet 1/0/11
[SwitchA-GigabitEthernet1/0/11] port link-type hybrid
[SwitchA-GigabitEthernet1/0/11] port hybrid vlan 2 20 40 tagged
140

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5500-si series

Table of Contents