3Com Switch 8800 Advanced Software V5 Configuration Guide
414 CHAPTER 34: GRE CONFIGURATION
Network diagram
Figure 129 Network diagram for GRE application
Configuration procedure
1 Configure Switch 1
# Enter system view.
<Sysname1> system-view
# Enable IPv6.
[Sysname1] ipv6
# Configure Vlan-interface100.
[Sysname1] vlan 100
[Sysname1-vlan100] port GigabitEthernet 4/1/1
[Sysname1-vlan100] quit
[Sysname1] interface vlan-interface 100
[Sysname1-Vlan-interface100] ipv6 address 2002::1:1 64
[Sysname1-Vlan-interface100] quit
# Configure Vlan-interface101, the physical interface for the tunnel.
[Sysname1] vlan 101
[Sysname1-vlan101] port GigabitEthernet 4/1/2
[Sysname1-vlan101] quit
[Sysname1] interface vlan-interface 101
[Sysname1-Vlan-interface101] ip address 192.13.2.1 255.255.255.0
[Sysname1-Vlan-interface101] quit
# Create an interface named Tunnel 4/0/1.
[Sysname1] interface tunnel 4/0/1
# Configure an IPv6 address for interface Tunnel 4/0/1.
[Sysname1-Tunnel4/0/1] ipv6 address 2001::1:1 64
# Configure the tunnel encapsulation mode.
[Sysname1-Tunnel4/0/1] tunnel-protocol gre
# Configure the source address of interface Tunnel 4/0/1 to be the IP address of
the Vlan interface to GigabitEthernet 4/1/2 belongs.
[Sysname1-Tunnel4/0/1] source vlan-interface 101
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel 4/0/1
Vlan-interface101
192.13.2.1/24
Tunnel 4/0/1
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1 2003::1:2/64
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv4
Group1
IPv 4
Group2
Sw itc h1
Tunnel
Vlan-interface101
192.13.2.1/24
Tunnel
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
IPv4 Netw ork
IPv6
Group1
IPv 6
Group2
Sw itc h1
Tunnel 4/0/1
Vlan-interface101
192.13.2.1/24
Tunnel 4/0/1
Vlan-interface101
131.108.5.2/24
Vlan-interface100 Vlan-interf ace100
Sw itc h 2
2002::1:1/64