186
set ip
Syntax:
set ip <ip> <mask> <gateway>
Description:
To set the system IP address, subnet mask and gateway.
Argument:
<ip> : ip address
<mask> : subnet mask
<gateway> : default gateway
Possible value:
<ip> : 192.168.1.2 or others
<mask> : 255.255.255.0 or others
<gateway> : 192.168.1.253 or others
Example:
GSW-2496(ip)# set ip 192.168.1.2 255.255.255.0 192.168.1.253
show
Syntax:
show
Description:
To display the system’s DHCP function state, IP address, subnet mask, default
gateway, DNS mode, DNS server IP address and current IP address.
Argument:
None.
Possible value:
None.
Example:
GSW-2496(ip)# show
DHCP : Disable
IP Address : 192.168.2.237
Current IP Address : 192.168.2.237
Subnet mask : 255.255.255.0
Gateway : 192.168.2.252
DNS Setting : Manual
DNS Server : 168.95.1.1