Chapter 5 Interfaces
ZyWALL (ZLD) CLI Reference Guide
50
5.2.1 Basic Interface Properties and IP Address Commands
This table lists basic properties and IP address commands.
5.2.1.1 Basic Interface Properties Command Examples
The following commands make Ethernet interface ge1 a DHCP client.
Table 13 interface Commands: Basic Properties and IP Address Assignment
COMMAND DESCRIPTION
show interface {ethernet | vlan | bridge | ppp
| auxiliary} status
Displays the connection status of the specified type
of interfaces.
show interface {interface_name | ethernet |
vlan | bridge | ppp | virtual ethernet |
virtual vlan | virtual bridge | auxiliary |
all}
Displays information about the specified interface,
specified type of interfaces, or all interfaces.
show interface summary all Displays basic information about the interfaces.
show interface summary all status Displays the connection status of the interfaces.
[no] interface interface_name Creates the specified interface if necessary and
enters sub-command mode. The
no command
deletes the specified interface.
[no] shutdown Deactivates the specified interface. The
no
command activates it.
[no] description description Specifies the description for the specified interface.
The no command clears the description.
description: You can use alphanumeric and
()+/:=?!*#@$_%- characters, and it can be up
to 60 characters long.
[no] ip address dhcp Makes the specified interface a DHCP client; the
DHCP server gives the specified interface its IP
address, subnet mask, and gateway. The
no
command makes the IP address static IP address
for the specified interface. (See the next command
to set this IP address.)
[no] ip address ip subnet_mask Assigns the specified IP address and subnet mask
to the specified interface. The
no command clears
the IP address and the subnet mask.
[no] ip gateway ip Adds the specified gateway using the specified
interface. The
no command removes the gateway.
ip gateway ip metric <0..15> Sets the priority (relative to every gateway on every
interface) for the specified gateway. The lower the
number, the higher the priority.
Router# configure terminal
Router(config)# interface ge1
Router(config-if)# ip address dhcp
Router(config-if)# exit