Configuration Commands : interface ip address

interface ip address
Description
Use the interface ip address command to configure IP address and netmask for this interface.
Use the no form of this command to erase the IP address and netmask for this interface.
Syntax
interface <interface name> ip address <ip address> <netmask>
interface <interface name> ip address <ip address> <netmask> nexthop <ip address>
interface <interface name> ip address <ip address> <netmask> nexthop <ip address> ipv6 address <ipv6 address> <netmask> [nexthop <ipv6 address>]
no interface <interface name> ip address
Arguments
<interface name>
<ip address> <netmask>
Specifies the source IPv4 address and netmask in standard or slash notation. For example, 10.2.0.0 0.0.255.255 could be entered as 10.2.0.0 /16.
ipv6 address <ipv6 address> <netmask>
nexthop <ip address>
Next-hop address for this interface. It continues the IP format (IPv4 or IPv6) of the address for which it is the next hop.
Defaults
None.
Command Mode
Global Configuration Mode
See Also
See the following related commands:
n
n
n
n
Usage Guidelines
To see a list of the available interface names you may use, enter the following command:
<silver-peak> (config) # interface ?
Examples
To configure separate IPv4 and IPv6 addresses, with next-hops, for the wan0 interface:
<silver-peak> (config) # interface wan0 ip address 1.1.1.1 /24 nexthop 1.1.1.2 ipv6 address fd9f:e427:dea2:6bb5:f02c:a971:b689:e318 /112 nexthop fd9f:e427:dea2:6bb5:f02c:a971:b689:fffe
 

Please send comments or suggestions regarding user documentation to techpubs@silver-peak.com.