
Operation Manual – GRE
H3C S9500 Series Routing Switches
Chapter 1 GRE Configuration
1-11
<Sysname1> system-view
# Enable IPv6.
[Sysname1] ipv6
# Configure VLAN-interface 100.
[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-interface 101, 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
# Configure the destination address of interface Tunnel 4/0/1 to be the IP address of the
Vlan interface to which GigabitEthernet 4/1/2 of Switch B belongs. Additionally, enable
the expediting function.
[Sysname1-Tunnel4/0/1] destination 131.108.5.2
[Sysname1-Tunnel4/0/1] expediting enable
[Sysname1-Tunnel4/0/1] quit
# Create service loop group 1, setting the configuration mode to manual and the
service type to tunnel.
[Sysname1] link-aggregation group 1 mode manual
[Sysname1] link-aggregation group 1 service-type tunnel
# Configure the tunnel to reference service loop group 1 in tunnel interface view.