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

Page 24

Advertising
background image

8

Figure 15 Network diagram for basic P2MP GRE tunnel configuration

Configuration procedure

Step1

Configure Device A

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

<DeviceA> system-view

[DeviceA] interface gigabitethernet 1/1

[DeviceA–GigabitEthernet1/1] ip address 11.1.1.1 255.255.255.0

[DeviceA–GigabitEthernet1/1] quit

# Configure an IP address for interface GigabitEthernet 1/2.

[DeviceA] interface gigabitethernet 1/2

[DeviceA–GigabitEthernet1/2] ip address 192.168.11.1 255.255.255.0

[DeviceA–GigabitEthernet1/2] quit

# Create interface Tunnel 0 and configure an IP address for it.

[DeviceA] interface tunnel 0

[DeviceA-Tunnel0] ip address 192.168.22.1 255.255.255.0

# Configure the tunnel encapsulation mode as P2MP GRE.

[DeviceA-Tunnel0] tunnel-protocol gre p2mp

# Configure the mask of the branch network as 255.255.255.0.

[DeviceA-Tunnel0] gre p2mp branch-network-mask 255.255.255.0

# Set the tunnel entry aging time to 20 seconds.

[DeviceA-Tunnel0] gre p2mp aging-time 20

# Configure the source IP address of interface Tunnel 0.

[DeviceA-Tunnel0] source 11.1.1.1

[DeviceA-Tunnel0] quit

# Configure a static route to the branch network with the outgoing interface being Tunnel 0.

[DeviceA] ip route-static 192.168.12.0 255.255.255.0 tunnel 0

Step2

Configure Device B

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

<DeviceB> system-view

[DeviceB] interface gigabitethernet 1/1

[DeviceB–GigabitEthernet1/1] ip address 11.1.1.2 255.255.255.0

Advertising
This manual is related to the following products: