Vlan configuration examples at the cli, Vlan interface configuration example, Network requirements – H3C Technologies H3C SecPath F1000-E User Manual
Page 68: Configuration procedure
43
NOTE:
•
To change the link type of a port from trunk to hybrid or vice versa, you must set the link type to access
first.
•
Before assigning a hybrid port to a VLAN, create the VLAN first.
•
After configuring the PVID for a hybrid port, you must use the port hybrid vlan command to configure
the hybrid port to allow packets from the PVID to pass through, so that the egress port can forward
packets from the PVID.
VLAN configuration examples at the CLI
VLAN interface configuration example
Network requirements
As shown in
, PC 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 SecPath and configure the PCs to enable Layer 3 communication between
the PCs.
Figure 29 Network diagram
Configuration procedure
1.
Configure SecPath:
# Create VLAN 5 and assign GigabitEthernet 0/1 to it.
[SecPath] vlan 5
[SecPath-vlan5] port gigabitethernet 0/1
# Create VLAN 10 and assign GigabitEthernet 0/2 to it.
[SecPath-vlan5] vlan 10
[SecPath-vlan10] port gigabitethernet 0/2
[SecPath-vlan10] quit
# Create VLAN-interface 5 and configure its IP address as 192.168.0.10/24.
[SecPath] interface vlan-interface 5
[SecPath-Vlan-interface5] ip address 192.168.0.10 24
[SecPath-Vlan-interface5] quit
# Create VLAN-interface 10 and configure its IP address as 192.168.1.20/24.
- H3C SecPath F5000-A5 Firewall H3C SecPath F1000-A-EI H3C SecPath F1000-E-SI H3C SecPath F1000-S-AI H3C SecPath F5000-S Firewall H3C SecPath F5000-C Firewall H3C SecPath F100-C-SI H3C SecPath F1000-C-SI H3C SecPath F100-A-SI H3C SecBlade FW Cards H3C SecBlade FW Enhanced Cards H3C SecPath U200-A U200-M U200-S H3C SecPath U200-CA U200-CM U200-CS H3C SecBlade LB Cards H3C SecPath L1000-A Load Balancer