R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101
29
To do… Use the command…
Remarks
Shut down the VLAN
interface
shutdown
Optional
By default, a VLAN interface is in the
up state. 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.
A VLAN interface shut down with the
shutdown command, however, will be
in the DOWN (Administratively) state
until you bring it up, regardless of how
the state of the ports in the VLAN
changes.
NOTE:
Before creating a VLAN interface for a VLAN, create the VLAN first.
VLAN interface configuration example
1. Network requirements
As shown in Figure 18, P
C A is assigned to VLAN 5. PC B is assigned to VLAN 10. The PCs belong to
different IP subnets and cannot communicate with each other.
Configure VLAN interfaces on Firewall and configure the PCs to enable Layer 3 communication between
the PCs.
Figure 18 Network diagram for VLAN interface configuration
2. Configuration procedure
a. Configure Firewall
# Create VLAN 5 and assign GigabitEthernet 0/1 to it.
<Firewall> system-view
[Firewall] vlan 5
[Firewall-vlan5] port GigabitEthernet 0/1
# Create VLAN 10 and assign GigabitEtherne t0/2 to it.
[Firewall-vlan5] vlan 10
[Firewall-vlan10] port GigabitEthernet 0/2
[Firewall-vlan10] quit
# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.
[Firewall] interface vlan-interface 5