F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
90
Layer 3 subinterface forwarding configuration
example
Network requirements
As shown in Figure 50, traffic between GigabitEthernet 3/0/1 and GigabitEthernet 3/0/2 is filtered by
an LB module, and Layer 3 subinterface forwarding needs to be configured.
Figure 50 Network diagram for Layer 3 subinterface forwarding
Configuration procedure
• Configure the ports on the switch:
# Create VLAN 102 and VLAN 103. Assign GigabitEthernet 3/0/1 to VLAN 102 and
GigabitEthernet 3/0/2 to VLAN 103.
<Switch> system-view
[Switch] vlan 102
[Switch-vlan102] port gigabitethernet 3/0/1
[Switch-vlan102] vlan 103
[Switch-vlan103] port gigabitethernet 3/0/2
[Switch-vlan103] quit
# Configure the link type of ten-GigabitEthernet 2/0/1 as trunk and assign the trunk port to VLAN
102 and VLAN 103.
[Switch] interface ten-gigabitethernet 2/0/1
[Switch-Ten-GigabitEthernet2/0/1] port link-type trunk
[Switch-Ten-GigabitEthernet2/0/1] port trunk permit vlan 102 103
• Configure the LB module:
# Configure the operating mode of ten-GigabitEthernet 0/0 as Layer 3.
[LB] interface ten-gigabitethernet 0/0
[LB-Ten-GigabitEthernet0/0] port link-mode route
# Configure two subinterfaces for ten-GigabitEthernet 0/0. Set their encapsulation type to dot1q
and associate them to with VLANs created on the switch. Assign IP addresses for the subinterfaces.
[LB-Ten-GigabitEthernet0/0] interface ten-gigabitethernet0/0.1
[LB-Ten-GigabitEthernet0/0.1] vlan-type dot1q vid 102
LB module
Switch or Router
XGE2/0/1
XGE0/0
VLAN 103
VLAN 102 XGE0/0.2
XGE0/0.3
GE3/0/1
IP network IP network
GE3/0/2