Method used to configure the Trunk interface on USG firewalls

The method used to configure the Trunk interface on the USG2000, USG5000, and USG6000 is as follows:
Generally, interfaces of firewalls are L3 interfaces. These L3 interfaces shall be converted to L2 interfaces.
sys
[USG]vlan batch 2 3 //Create a VLAN.
[USG]interface gigabitethernet 0/0/3
[USG-GigabitEthernet0/0/3]Portswitch //Convert an L3 interface to an L2 interface. If the interface is an L2 interface, this command is not required.
[USG-GigabitEthernet0/0/3]port link-type trunk //Set the interface type to Trunk (the default value is Hybrid).
[USG-GigabitEthernet0/0/3]port trunk allow-pass vlan all //Set the system to permit packets of all VLANs (by default, only packets in VLAN 1 are permitted).
[USG-GigabitEthernet0/0/3]port trunk pvid vlan 2 //(Optional) Set the default VLAN to VLAN 2 (the default VLAN is VLAN 1 previously).

Scroll to top