Command Line (CLI) Reference > CLI Commands > Interface

CLI: Interface

You can use the interface command to configure the interface address and other  IP 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>

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>

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

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

To enable DHCP 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}

E X A M P L E

Set the speed and duplex interface settings for eth2.

interface eth2 speed 100

interface eth2 duplex full

To configure the MTU 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]

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