beautypg.com

2 ip address, 3 ip route, Ip address – PLANET XGS3-24042 User Manual

Page 699: Ip route

background image

39-3

GRE Tunnel PACKET: recv, src <1.1.1.2>, dst <1.1.1.1>, size <140>, proto <0x0800>, from

39.2 ip address

Command:

ip address

no ip address

Function:

Configure the IPv4 address of GRE tunnel interface.

Parameter:

<ipv4-address> is IPv4 address, is the sub-net mask.

Command mode:

Tunnel interface configuration mode.

Usage Guide:

When configuring the interface address is IPv4 address for GRE tunnel, only one primary address

can be set, but secondary address can not be set. This limitation will also be used to other tunnels,

such as configure tunnel, 6to4, isatap.

Notice: the tunnel must stays in active state when configuring IPv4 address, so it is different to IPv6

address.

Example:

Configure the interface address is IPv4 address for GRE tunnel.

Switch(config)# interface tunnel 1

Switch(config-if-tunnel1)#ip address 11.0.0.1 255.255.255.0

39.3 ip route

Command:

ip route tunnel

no ip route tunnel

Function:

Configure the output interface of IPv4 static route as GRE tunnel.

Parameter:

<ipv4-address > is the IPv4 address, is the sub-net mask, is GRE tunnel ID.