Chapter 5 Interfaces
ZyWALL (ZLD) CLI Reference Guide
61
This table lists the VLAN interface commands.
5.2.7.1 VLAN Interface Command Examples
The following commands show you how to set up VLAN vlan100 with the following
parameters: VLAN ID 100, interface ge1, IP 1.2.3.4, subnet 255.255.255.0, MTU 598,
gateway 2.2.2.2, description "I am vlan100”, upstream bandwidth 345, and downstream
bandwidth 123.
5.2.8 Bridge Commands
This section identifies commands that support bridge interfaces. Bridge interfaces also use
many of the general interface commands discussed at the beginning of Section 5.2 on page 49.
The following table identifies the values required for many of these commands. Other input
values are discussed with the corresponding commands.
Table 25 interface Commands: VLAN Interfaces
COMMAND DESCRIPTION
interface interface_name Creates the specified interface if necessary and
enters sub-command mode.
[no] port interface_name Specifies the Ethernet interface on which the VLAN
interface runs. The no command clears the port.
[no] vlan-id <1..4094> Specifies the VLAN ID used to identify the VLAN.
The
no command clears the VLAN ID.
show port vlanid Displays the Ethernet interface VLAN settings.
Router# configure terminal
Router(config)# interface vlan100
Router(config-if-vlan)# vlan-id 100
Router(config-if-vlan)# port ge1
Router(config-if-vlan)# ip address 1.2.3.4 255.255.255.0
Router(config-if-vlan)# ip gateway 2.2.2.2
Router(config-if-vlan)# mtu 598
Router(config-if-vlan)# upstream 345
Router(config-if-vlan)# downstream 123
Router(config-if-vlan)# description I am vlan100
Router(config-if-vlan)# exit
Table 26 Input Values for Bridge Interface Commands
LABEL DESCRIPTION
interface_name The name of the interface.
Ethernet interface: For the ZyWALL USG 300 and above, use gex, x = 1 - N,
where N equals the highest numbered Ethernet interface for your ZyWALL
model.
The ZyWALL USG 100 and 200 models use a name such as wan1, wan2,
opt, lan1, ext-wlan, or dmz.
VLAN interface: vlanx, x = 0 - 4094
bridge interface: brx, x = 0 - N, where N depends on the number of bridge
interfaces your ZyWALL model supports.