HP VPN Firewall Appliances Network Management Configuration Guide

45
[Firewall-Vlan-interface10] ip address 192.168.1.20 24
[Firewall-Vlan-interface10] return
b. Configure the default gateway of PC A as 192.168.0.10.
c. Configure the default gateway of PC B as 192.168.1.20.
3. Verifying the configuration
a. The PCs can ping each other.
b. Display brief information about Layer 3 interfaces on Firewall to verify the configuration.
<Firewall> display ip interface brief
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address Description
Vlan-interface5 up up 192.168.0.10 Vlan-inte...
Vlan-interface10 up up 192.168.1.20 Vlan-inte...
Configuring port-based VLANs
Assigning an access port to a VLAN
You can assign an access port to a VLAN in VLAN view or interface view. Before you assign an access
port to a VLAN, create the VLAN.
In VLAN view, you can assign only Layer 2 Ethernet interfaces to the VLAN.
The link type of Layer 2 Ethernet subinterfaces is fixed at access. You can assign them to a VLAN in either
of the preceding methods.
To assign one or multiple access ports to a VLAN in VLAN view:
Ste
p
Command
Remarks
1. Enter system view
system-view N/A
2. Enter VLAN view
vlan vlan-id N/A
3. Assign one or a group of
access ports to the VLAN
port interface-list By default, all ports belong to VLAN 1.
To assign an access port to a VLAN in interface view:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A