CLI: Interface

You can use the interface command to configure the interface address and other IPInternet protocol networking settings.

NOTE

  • To set global IP network settings (e.g. default gateway) use the "ip" command.
  • To configure a role for an interface (e.g. Cluster, Mirror or WCCP) use associated role command (cluster, mirror or wccp)
  • To configure bridge settings, use the "bridge" command.

Configuring Interface address

interface <inf> ip address
interface <inf> ipv6 {address|enable}
interface <inf> {dhcp|alias|comment|duplex|speed|mtu|shutdown}

To add or remove an IPv4 address and netmask for the specified interface:

[no] interface <inf> ip address <IPv4 addr> <netmask>

  • netmask - Specify the netmaks as dotted quad format (e.g. 255.255.255.0) or as a netmask length after a slash (e.g. /24)

To enable IPv6 on the specified interface:

[no] interface <inf> ipv6 enable

To add or remove an IPv6 address for the specified interface:

[no] interface <inf> ipv6 address <IPv6 addr>/<len>

  • <IPv6 addr>/<len> - e.g. 2001:db8:1234::5678/64

To enable IPv6 stateless address autoconfiguration (SLAAC) on the specified interface:

[no] interface <inf> ipv6 address autoconfig [default | privacy]

  • default - Enables learning default routes
  • privacy - Enabled autoconfiguration privacy extensions

To enable DHCPDynamic Host Configuration Protocol on the specified interface:

interface <inf> dhcp

To renew DHCP on the specified interface:

interface <inf> dhcp renew

To configure an IPv4 alias on the specified interface:

interface <inf> alias <alias index> ip <IPv4 addr>

To add a comment to the specified interface:

interface <inf> comment <comment>

To configure the duplex of the specified interface:

interface <inf> duplex {half|full|auto}

To configure the speed of this interface:

interface <inf> speed {10|100|1000|auto}

EXAMPLE

Set the speed and duplex interface settings for eth2.

interface eth2 speed 100
interface eth2 duplex full

To configure the MTUMaximum Transmission Unit of this interface:

interface <inf> mtu <mtu>

To disable the specified interface:

interface <inf> shutdown

Viewing interface running state and configuration

To display information about the running state for the interfaces:

show interfaces [<inf>] [brief]

  • <inf> - Optionally, indication that you want information for a single interface; otherwise information for all interfaces will be shown
  • brief - Optionally, indicate that you want brief details; otherwise the information will be detailed.

To display the current configuration for all interfaces:

show interfaces configured

To display a summary of the running state for all interfaces, including bridge and role information:

show interfaces summary