Page 19
6.1.4
IP (IP)
The
ip
command provides the ability to configure the IP address, subnet mask and gateway of the switch.
It also allows DHCP to be disabled or enabled.
To configure IP, use the
ip
command from the CLI prompt. A list of options is displayed when the
ip -h
command is entered.
> ip
Description:
ip - IP configuration
Syntax:
ip [-h]
ip -s
ip [-addr ipAddr[/plen]] [-net subnet]
ip -gw gateway
ip {-dis|-ena} dhcp|ipv4
Switches:
-addr IP address: [ipAddr][/plen]
[ipAddr] IP address
[plen] subnet mask or prefix length, dflt 24
-dis disable function: {dhcp|ipv4}
-ena enable function: {dhcp|ipv4}
[dhcp] DHCP protocol enable/disable, dflt disabled
[ipv4] IPv4 enable/disable, dflt enabled
-gw gateway address, [gateway]
-h display help information
-net subnet mask, [subnet]
-s show current configuration
>
The options available using the
ip
command are shown below.
The
-addr
switch configures the IP address of the switch.
The
-dis
switch disables DHCP client.
The
-ena
switch enables DHCP client.
The
-gw
switch configures the gateway IP address of the switch.
The
-h
switch displays the help screen presented above. It is static and provides help information for the
specific command.
The
-net
switch configures the subnet mask of the switch.
The
-s
switch displays the current IP configuration.
To configure the IP address of the switch, use the
-addr
command.
> ip -addr 192.168.1.100