ip interface

Required Command-Line Mode = Configure

Use the ip interface command to configure an IP interface with network/tool/circuit port.

IP interfaces with tool or network ports are used together with GigaSMART® operations, including the encapsulation and decapsulation components, to send and receive traffic. Refer to the “Working with GigaSMART Operations” section in the GigaVUE Fabric Management Guide for details.

The ip interface command has the following syntax:

ip interface alias <alias>
   attach <port-id>
   comment <comment for the ip interface>
   ip address <ip address> <netmask | mask length>
   ipv6 address <IPv6 address>/<len>
   gw <gw address>
   gw-ipv6 <ipv6 gw address>
   mtu <mtu value in bytes>
   gsgroup
     add <gsgroup-alias>
     delete <gsgroup-alias>
   netflow-exporter
     add <netflow-exporter-alias>
     delete <netflow-exporter-alias>

The following table describes the arguments for the ip interface command:

Argument

Description

ip interface alias <alias>

Specifies the IP interface alias on the GigaVUE HC Series node to be used as the encapsulation or decapsulation port.

attach <port-id>

Specifies the port ID that will be attached to the IP interface.

<comment for the ip interface>

Specifies the description of the IP interface.

ip address <IP address> <netmask | mask length>

Specifies the IPv4 address and subnet mask to be used for the IP interface. You can specify the subnet mask using either of the following formats:

netmask—For example, 255.255.255.248
mask length—For example, /29

ipv6 address <IPv6 address>/<len>

Specifies the IPv6 address and prefix length to be used for the IP interface.

For example, 2001::1 /64

gw <gw address>gw-ipv6 <ipv6 gw address>

Specifies the IPv4 or IPv6 address of the default gateway for this IP interface.

mtu

Specifies the MTU size for the IP interface.

The MTU is fixed at 9400 for all network/tool ports on the following platforms:

GigaVUE‑HC2 and GigaVUE‑HC2 equipped with Control Card version 2 (HC2 CCv2)
GigaVUE‑HC1
GigaVUE‑HC3
GigaVUE‑TA25, GigaVUE-TA100, ,and GigaVUE‑TA200.

RECOMMENDATION: Set the MTU to 9400 on all platforms to avoid fragmentation.

gsgroup
     add <gsgroup-alias>
     delete <gsgroup-alias>

Specifies the GigaSMART group alias that will be attached or deleted from this IP interface.

netflow-exporter
     add <netflow-exporter-alias>
     delete <netflow-exporter-alias>

Specifies the NetFlow exporter alias that will be associated with this IP interface or deleted from this IP interface.

Example

(config) # port 1/1/g1 type tool

(config) # port 1/1/g1 type network

(config ip interface alias test) #

(config ip interface alias test) # attach 1/1/g1

(config ip interface alias test) # ip address 1.1.1.1 /29

(config ip interface alias test) # ipv6 address ::/0

(config ip interface alias test) # gw 1.1.1.2

(config ip interface alias test) # mtu 9400

(config ip interface alias test) # gsgroup add gsg

(config ip interface alias test) # netflow-exporter add exp1,exp2

(config ip interface alias test) # exit

Attaches the port 1/1/g1with the IP interface alias “test” and designates the port as a network port, configures its IPv6 address, prefix length, gateway, and MTU size, and assigns a GigaSMART group and NetFlow exporter to it.

The following table summarizes other commands related to the ip interface command:

Task

Command

Displays all IP interfaces.

# show ip interfaces

Displays a specified IP interface.

# show ip interface alias test

Displays destinations for a specified IP interface.

# show ip destination interface-alias <alias>

Displays IP interface statistics.

# show ip interface stats

Displays statistics for a specific IP interface.

# show ip interface stats alias <alias>

Displays destination statistics for a specific IP interface.

# show ip destination stats interface-alias <alias>

Displays IP destination status that are filtered by GigaSMART groups.

# show ip destination gsgroup <gsgroup-alias>

Displays IP destination statistics that are filtered by GigaSMART groups.

# show ip destination stats gsgroup <gsgroup-alias>

Deletes all IP interfaces.

(config) # no ip interface all

Deletes the GigaSMART group that is associated with the IP interface.

(config) # ip interface alias giga_auto_tunnel_1_1_g1 gsgroup delete gsg,gsg1

exit