43-6
Tunnel interface configuration mode
tunnel mode gre ip
no tunnel mode
Configure the tunnel mode as GREv4 tunnel.
After the data packet is encapsulated with GRE,
it has a head of IPv4 packets, and passes the
tunnel mode gre ipv6
no tunnel mode
Configure the tunnel mode as GREv6 tunnel.
After the data packet is encapsulated with GRE,
it has the head of IPv6 packets, and passes the
2. Configure the source address and the destination address of GRE tunnel
Tunnel interface configuration mode
tunnel source {<ipv6-address> |
<ipv4-address>}
Configure the source address as the IPv6 or
IPv4 address for GRE tunnel.
tunnel destination {<ipv6-address>
| <ipv4-address>}
Configure the destination address as the IPv6 or
IPv4 address for GRE tunnel.
3. Configure the interface address of GRE tunnel
Tunnel interface configuration mode
ip address <ipv4-address>
<mask>
no ip address <ipv4-address>
Configure the IPv4 address of GRE tunnel
interface.
ipv6 address
<ipv6-address/prefix>
no ipv6 address
Configure the IPv6 address o
interface.
4. Configure the egress interface of the static route as GRE tunnel