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

Page 10

Advertising
background image

9

Figure 8 Network diagram for a GRE over IPv4 tunnel

Configuration procedure

NOTE:

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

Step1

Configure Device A

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

<DeviceA> system-view

[DeviceA] interface gigabitethernet 1/1

[DeviceA-GigabitEthernet1/1] ip address 10.1.1.1 255.255.255.0

[DeviceA-GigabitEthernet1/1] quit

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

[DeviceA] interface gigabitethernet 2/0

[DeviceA-GigabitEthernet2/0] ip address 1.1.1.1 255.255.255.0

[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 IPv4.

[DeviceA-Tunnel0] tunnel-protocol gre

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

[DeviceA-Tunnel0] source 1.1.1.1

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

[DeviceA-Tunnel0] destination 2.2.2.2

[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

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

<DeviceB> system-view

[DeviceB] interface gigabitethernet 1/1

[DeviceB-GigabitEthernet1/1] ip address 10.1.3.1 255.255.255.0

[DeviceB-GigabitEthernet1/1] quit

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

Advertising
This manual is related to the following products: