Assign an IP address from the command-line interface
Use the set network command to configure an IP address from the command line. The set network command includes the following parameters:
- ip=device ip: The IP address for the device.
- gateway=gateway: The network gateway IP address.
- garp=seconds: The frequency of Gratuitous ARP (GARP) announcements, in seconds, which are a broadcast announcement to the network of a device’s MAC address and the IP address.
- submask=device submask: The device subnet mask for the IPaddress.
- dhcp=off: Turns off use of the Dynamic Host Configuration Protocol (DHCP), so that the IP address assigned is permanent.
- static=on: Specifies that the IP address is static, and will remain as the specified IP address, gateway, and submask.
For example:
set network ip=10.0.0.100 gateway=10.0.0.1 submask=255.255.255.0 dhcp=off static=on