Chapter 2 Common Commands

The first command in this example shows information about the LAN port, for example, it has an IP address of 192.168.1.1. The second command is used to change this IP address to 192.168.100.100.

ras> ip ifconfig enif0

 

 

 

 

enif0: mtu 1500 mss 1460

 

 

 

inet 192.168.1.1, netmask 0xffffff00, broadcast 192.168.1.255

 

RIP RX:Ver 1 & 2, TX:Ver 1,

0] [InMulticast

0]

[InOctets

0]

[InUnicast

[InDiscards

0]

[InErrors

0] [InUnknownProtos

0]

[OutOctets

156] [OutUnicast

0] [OutMulticast

3]

[OutDiscards

0] [OutErrors

0]

 

ras> ip ifconfig enif0 192.168.100.100/24

 

 

enif0: mtu 1500 mss 1460

 

 

 

inet 192.168.100.100, netmask 0xffffff00, broadcast 192.168.100.255

 

RIP RX:Ver 1 & 2, TX:Ver 1,

0] [InMulticast

0]

[InOctets

0]

[InUnicast

[InDiscards

0]

[InErrors

0] [InUnknownProtos

0]

[OutOctets

728]

[OutUnicast

0] [OutMulticast

14]

[OutDiscards

0] [OutErrors

0]

 

ras>

 

 

 

 

"Afterwards, you have to use this new IP address to access the ZyWALL via the LAN port.

To view information on all interfaces, enter ip ifconfig.To view DHCP information on the LAN port, enter ip dhcp enif0 status.

ras>

ip dhcp enif0 status

 

 

 

 

DHCP

on iface enif0 is server

 

 

 

 

Start assigned IP address: 192.168.1.33/24

 

 

Number of IP addresses reserved: 128

 

 

Hostname prefix: dhcppc

 

 

 

 

DNS server: 0.0.0.0 0.0.0.0 0.0.0.0

 

 

WINS server: 0.0.0.0 0.0.0.0

 

 

 

Domain Name :

 

 

 

 

 

 

Default gateway: 192.168.1.1

 

 

 

Lease time: 259200 seconds

 

 

 

Renewal time: 129600 seconds

 

 

 

Rebind time: 226800 seconds

 

 

 

Probing count: 4

 

 

 

 

slot

Probing type: ICMP

type hardware address

hostname

state

timer

0

UNCERTAIN

 

0

0

00

 

1

UNCERTAIN

 

0

0

00

 

18

 

ZyWALL (ZyNOS) CLI Reference Guide