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

Page 173

Advertising
background image

27

Figure 12 Network diagram for an IPv4 over IPv4 tunnel

GE1/1

10.1.1.1/24

GE2/0
2.1.1.1/24

GE1/1
10.1.3.1/24

Device A

IPv4 netwok

IPv4

Group 1

Tunnel1
10.1.2.1/24

GE2/1

3.1.1.1/24

Tunnel2

10.1.2.2/24

IPv4

Group 2

Device B

Configuration procedure

NOTE:

Make sure that Device A and Device B are reachable to each other.

Configuration on Device A

# Configure an IPv4 address for 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 GigabitEthernet 2/0 (the physical interface of the tunnel).

[DeviceA] interface GigabitEthernet 2/0

[DeviceA-GigabitEthernet2/0] ip address 2.1.1.1 255.255.255.0

[DeviceA-GigabitEthernet2/0] quit

# Create the interface tunnel 1.

[DeviceA] interface tunnel 1

# Configure an IPv4 address for the interface tunnel 1.

[DeviceA-Tunnel1] ip address 10.1.2.1 255.255.255.0

# Configure the tunnel encapsulation mode.

[DeviceA-Tunnel1] tunnel-protocol ipv4-ipv4

# Configure a source address for the interface tunnel 1 (IP address of GigabitEthernet 2/0).

[DeviceA-Tunnel1] source 2.1.1.1

# Configure a destination address for the interface tunnel 1 (IP address of GigabitEthernet 2/1 of Device
B).

[DeviceA-Tunnel1] destination 3.1.1.1

[DeviceA-Tunnel1] quit

# Configure a static route from Device A through the interface tunnel 1 to Group 2.

[DeviceA] ip route-static 10.1.3.0 255.255.255.0 tunnel 1

Configuration on Device B

# Configure an IPv4 address for GigabitEthernet 1/1.

<DeviceB> system-view

[DeviceB] interface gigabitethernet 1/1

[DeviceB-GigabitEthernet1/1] ip address 10.1.3.1 255.255.255.0

Advertising
This manual is related to the following products: