ip address

The command creates IP interface and adds IP address and subnet mask for a configured interface: physical interface, link aggregation group, tunnel or network bridge.

The use of a negative form (no) of the command removes IP address from the interface. When removing the last address, IP interface is destroyed.

When creating IP interface, the system reserves the biggest vacant VLAN ID that will be used within the system. VLAN is reserved for each IP interface on Ethernet port. If VLAN has already been reserved for IPv6 interface, then VLAN will not be reserved for IP interface.

You may reserve VLAN ID for internal use by ip internal-usage vlan <VLAN_ID> command.

Syntax
ip address <ADDR/LEN>
no ip address { <ADDR/LEN> | all }
Parameters

<ADDR/LEN> – IP address and subnet mask length, defined as AAA.BBB.CCC.DDD/EE where each part AAA-DDD takes values of [0..255] and EE takes values of [1..32]. You can specify several IP addresses separated by commas. Up to 8 IP addresses (including IPv6 addresses) can be assigned to the interface. The use of a negative form (no) of the command with ‘all’ parameter removes all IP addresses.

all – the command deletes all IP addresses on interface.

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-SERIAL

CONFIG-PORT-CHANNEL

CONFIG-E1

CONFIG-MULTILINK

CONFIG-VTI

CONFIG-GRE

CONFIG-IP4IP4

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-LT

Example
esr(config-if-gi)# ip address 192.168.25.25/24
CODE

ip redirects

The command enables the mechanism of sending ICMP messages about the existence of a router with a higher priority in the IP network for a specific IP destination.

The use of a negative form (no) of the command disables the mechanism of sending ICMP messages about the existence of a router with a higher priority in the IP network for a specific IP destination.

Syntax
[no] ip redirects
Parameters

The command does not contain parameters.

Required privilege level

15

Default value

Sending of ICMP messages about the existence of a router with a higher priority in the IP network for a specific IP destination is enabled.

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-MULTILINK

CONFIG-GRE

CONFIG-IP4IP4

CONFIG-LT

Example
esr(config-if-gi)# no ip redirects
CODE

ip route source-route

This command enables the ip source-route option on the router.

The use of a negative form of the command (no) disables the support for the ip source-route option.

Syntax
[no] ip route source-route
Parameters

The command does not contain parameters.

Default value

Disabled.

Required privilege level

10

Command mode

CONFIG

Example
esr(config)# ip route source-route
CODE

ip unnumbered

This command enables the interface operation mode with the use of the ip address assigned to another interface.

The use of a negative form (no) of the command disables the ip unnumbered mode.

Syntax
ip unnumbered { <IF> | <TUN> }
no ip unnumbere
Parameters

<IF> – an interface's name, specified in the form described in Section Types and naming order of router interfaces;

<TUN> – names of tunnels are specified as described in section Types and naming order of router tunnels.

Required privilege level

10

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-MULTILINK

CONFIG-GRE

CONFIG-IP4IP4

Example
esr(config-e1)# ip unnumbered gigabitethernet 1/0/1
esr(config-e1)#
CODE

ip unreachables

The command enables the sending of ICMP packets about destination address unavailability.

The use of a negative form (no) of the command disables the sending of ICMP packets about destination address unavailability.

Syntax
[no] ip unreachables
Parameters

The command does not contain parameters.

Required privilege level

15

Default value

Sending of ICMP packets about destination address unavailability.

Command mode

CONFIG-GI

CONFIG-TE

CONFIG-SUBIF

CONFIG-QINQ-IF

CONFIG-PORT-CHANNEL

CONFIG-BRIDGE

CONFIG-LOOPBACK

CONFIG-E1

CONFIG-MULTILINK

CONFIG-GRE

CONFIG-IP4IP4

CONFIG-LT

Example
esr(config-if-gi)# no ip unreachables
CODE

show ip interfaces

The command displays the information on IP interfaces existing in the system.

Syntax
show ip interfaces [ { <IF> | <TUN> | vrf <VRF> [ ip-address <ADDR> ] } ]
Parameters

<VRF> – VRF instance name, set by the string of up to 31 characters. When specifying this parameter, IP interfaces will be displayed in a specified VRF;

<ADDR> – IP address, defined as AAA.BBB.CCC.DDD where each part takes values of [0..255]. When specifying this parameter, IP interface with a specified IP address will be displayed;

<IF> – system interface names, specified in the form described in Section Types and naming order of router interfaces;

<TUN> – names of tunnels are specified as described in section Types and naming order of router tunnels.

You may specify several system interfaces in the command. If you do not specify interface indexes, then all IP interfaces related to the system interfaces of the specified type will be displayed.

If the command specifies a certain system interface that receives IP parameters via DHCP, DHCP client settings and the status of IP parameters current lease will be displayed.

Required privilege level

1

Command mode

ROOT

Example
esr# show ip interfaces
IP address            Interface       Type
-------------------   -------------   -------
155.0.0.60/24         br10            static
16.0.0.2/24           gi1/0/16        DHCP
10.0.0.1/8            gi1/0/18        static
180.0.0.1/24          gi1/0/18        static
192.168.1.1/24        gi1/0/2         static
25.0.0.2/30           gre 25          static
10.1.0.2/24           ip4ip4 10       static
esr# show ip interfaces gigabitethernet 1/0/16
IP address            Interface       Type
-------------------   -------------   -------
16.0.0.2/24           gi1/0/16        DHCP
 DHCP Client settings:
 DHCP Server:          N/A
 Lease time(dd:hh:mm): 00:02:00
 Reboot time:          10 seconds
 Retry time:           300 seconds
 Timeout:              60 seconds
 Select timeout:       0 seconds
 Vendor class ID:      N/A
 Ignore options:
    router

 Latest lease contents:
 Lease time(dd:hh:mm): 00:02:00
 DHCP message type:    DHCPACK
 Renew at:             Wednesday2015/02/25 12:22:24 2015/02/25 12:22:24
 Rebind at:            Wednesday2015/02/25 13:14:09 2015/02/25 13:14:09
 Expires at:           Wednesday2015/02/25 13:29:09 2015/02/25 13:29:09
CODE