
C613-50186-01 Rev B
Command Reference for AR2050V
2745
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
GRE T
UNNELING
C
OMMANDS
IP
ADDRESS
(GRE)
ip address (GRE)
Overview
This command sets a static IP address on a tunnel interface. To set the primary IP
address on the interface, specify only
ip address
<ip-address/m>
. This overwrites
any configured primary IP address. To add additional IP addresses on this interface,
use the
secondary
parameter. You must configure a primary address on the
interface before configuring a secondary address. The secondary address should
not be the same as the primary address.
NOTE
:
Use
show running-config interface
not
show ip interface brief
when you
need to view a secondary address configured on an interface.
show ip interface brief
will only show the primary address not a secondary address for an interface.
The
no
variant of this command removes the IP address from the tunnel interface.
You cannot remove the primary address when a secondary address is present.
Syntax
ip address
<ip-addr
/
prefix-length>
[secondary] [label
<label>
]
no ip address
<ip-addr/prefix-length>
[secondary]
no ip address
Mode
Interface Configuration
Examples
To add the primary IP address
172.16.1.1/24
to the tunnel interface
tunnel20
, use the commands:
awplus#
configure terminal
awplus(config)#
interface tunnel20
awplus(config-if)#
ip address 172.16.1.1/24
To add the secondary IP address
172.16.2.1/24
to the same tunnel interface,
use the commands:
awplus#
configure terminal
awplus(config)#
interface tunnel20
awplus(config-if)#
ip address 172.168.2.1/24 secondary
To remove the secondary IP address
172.16.2.1/24
, use the commands:
awplus#
configure terminal
awplus(config)#
interface tunnel20
awplus(config-if)#
no ip address 172.168.2.1/24 secondary
Parameter
Description
<ip-addr/prefix-
length>
The IPv4 address and prefix length you are assigning to the
tunnel interface.
<label>
A user-defined description of the secondary IP address. Valid
characters are any printable character and spaces.