Use this command to set the IP address, subnet mask and default gateway for a non-routing IP interface.
ip_address | Specifies the IPv4 or IPv6 address for a non-routing IP interface. |
mask ip_mask | (Optional) Sets the system‘s subnet mask. |
gateway ip_gateway | (Optional) Sets the IPv4 or IPv6 address of the system‘s default gateway (next-hop device). |
interface interface-name | (Optional) Sets the IP interface for this system. |
All command modes.
In a multiple IP interface configuration the explicit setting of the interface is required. The specifying of the interface creates the interface if it does not already exist.
This example shows how to set the system IP address to 10.1.10.1 with a mask of 255.255.128.0 and a default gateway of 10.1.0.1:
System(rw)->set ip address 10.1.10.1 interface vlan.0.5 mask 255.255.128.0 gateway 10.1.10.1
This example shows how to set the system IPv6 address to 2001:11ac:dcaa::/48 and a default gateway of 2001:11ac:dcaa::5 on interface VLAN 50:
System(rw)->set ip address 2001:11ac:dcaa::/48 v6_gateway 2001:11ac:dcaa::5 interface vlan.0.50