R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
89
Ste
p
Command
Remarks
8. Cancel the action of
manually shutting down the
VLAN interface.
undo shutdown
Optional.
By default, a VLAN interface is not
manually shut down. The VLAN interface
is up if one or more ports in the VLAN is
up, and goes down if all ports in the
VLAN go down.
VLAN interface configuration example
Network requirements
As shown in Figure 34, PC A is assigned to VLAN 5, and PC B is assigned to VLAN 10. The PCs belong
to different IP subnets and cannot communicate with each other.
Configure VLANs and VLAN interfaces on the SAP module of Router, so that PC A and PC B can
communicate at layer 3.
Figure 34 Network diagram
Configuration procedure
1. Configure Router:
# Create VLAN 5 and assign GigabitEthernet 4/0/1 to it.
<Router> system-view
[Router] vlan 5
[Router-vlan5] port GigabitEthernet4/0/1
# Create VLAN 10 and assign GigabitEthernet 4/0/2 to it.
[Router-vlan5] vlan 10
[Router-vlan10] port GigabitEthernet4/0/2
[Router-vlan10] quit
# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.
[Router] interface vlan-interface 5
[Router-Vlan-interface5] ip address 192.168.0.10 24
[Router-Vlan-interface5] quit
# Create VLAN-interface 10 and configure its IP address as 192.168.1.20/24.
[Router] interface vlan-interface 10
[Router-Vlan-interface10] ip address 192.168.1.20 24
[Router-Vlan-interface10] return