beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 14

background image

13

[DeviceB-GigabitEthernet2/1] quit

# Create an interface named Tunnel 0.

[DeviceB] interface tunnel 0

# Configure an IPv4 address for interface Tunnel 0.

[DeviceB-Tunnel0] ip address 10.1.2.2 255.255.255.0

# Configure the tunnel encapsulation mode as GRE over IPv6.

[DeviceB-Tunnel0] tunnel-protocol gre ipv6

# Configure the source address of interface Tunnel 0 to be the IP address of interface GigabitEthernet
2/1.

[DeviceB-Tunnel0] source 2002::2:1

# Configure the destination address of interface Tunnel 0 to be the IP address of interface
GigabitEthernet 2/0 on Device A.

[DeviceB-Tunnel0] destination 2002::1:1

[DeviceB-Tunnel0] quit

# Configure a static route from Device B through interface Tunnel 0 to Group 1.

[DeviceB] ip route-static 10.1.1.0 255.255.255.0 tunnel 0

Step3

Verify the configuration

# After the above configuration, display the tunnel interface status on Device A and Device B

respectively.

[DeviceA] display interface Tunnel 0

Tunnel0 current state: UP

Line protocol current state: UP

Description: Tunnel0 Interface

The Maximum Transmit Unit is 1456

Internet Address is 10.1.2.1/24 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source 2002::1:1, destination 2002::2:1

Tunnel protocol/transport GRE/IPv6

GRE key disabled

Checksumming of GRE packets disabled

Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0

Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0

Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0

Last clearing of counters: Never

Last 300 seconds input: 0 bytes/sec, 0 packets/sec

Last 300 seconds output: 0 bytes/sec, 0 packets/sec

10 packets input, 840 bytes

0 input error

10 packets output, 840 bytes

0 output error

[DeviceB] display interface Tunnel 0

Tunnel0 current state: UP

Line protocol current state: UP

Description: Tunnel0 Interface

The Maximum Transmit Unit is 1456

Internet Address is 10.1.2.2/24 Primary