beautypg.com

Configuration procedure – H3C Technologies H3C SecPath F1000-E User Manual

Page 13

background image

12

Configuration procedure

NOTE:

Before the configuration, make sure that Device A and Device B are reachable to each other.

Step1

Configure Device A

system-view

# Enable IPv6.

[DeviceA] ipv6

# Configure an IPv4 address for interface GigabitEthernet 1/1.

[DeviceA] interface gigabitethernet 1/1

[DeviceA-GigabitEthernet1/1] ip address 10.1.1.1 255.255.255.0

[DeviceA-GigabitEthernet1/1] quit

# Configure an IPv6 address for interface GigabitEthernet 2/0, the physical interface of the tunnel.

[DeviceA] interface gigabitethernet 2/0

[DeviceA-GigabitEthernet2/0] ipv6 address 2002::1:1 64

[DeviceA-GigabitEthernet2/0] quit

# Create an interface named Tunnel 0.

[DeviceA] interface tunnel 0

# Configure an IPv4 address for interface Tunnel 0.

[DeviceA-Tunnel0] ip address 10.1.2.1 255.255.255.0

# Configure the tunnel encapsulation mode as GRE over IPv6.

[DeviceA-Tunnel0] tunnel-protocol gre ipv6

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

[DeviceA-Tunnel0] source 2002::1:1

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

[DeviceA-Tunnel0] destination 2002::2:1

[DeviceA-Tunnel0] quit

# Configure a static route from Device A through interface Tunnel 0 to Group 2.

[DeviceA] ip route-static 10.1.3.0 255.255.255.0 tunnel 0

Step2

Configure Device B

system-view

# Enable IPv6.

[DeviceB] ipv6

# Configure an IPv4 address for interface GigabitEthernet 1/1.

[DeviceB] interface gigabitethernet 1/1

[DeviceB-GigabitEthernet1/1] ip address 10.1.3.1 255.255.255.0

[DeviceB-GigabitEthernet1/1] quit

# Configure an IPv6 address for interface GigabitEthernet 2/1, the physical interface of the tunnel).

[DeviceB] interface gigabitethernet 2/1

[DeviceB-GigabitEthernet2/1] ipv6 address 2002::2:1 64