beautypg.com

H3C Technologies H3C SecPath F1000-E User Manual

Page 27

background image

11

# Configure the tunnel encapsulation mode of interface Tunnel 0 as P2MP GRE.

[DeviceA-Tunnel0] tunnel-protocol gre p2mp

# Configure the mask of the branch network connected to Tunnel 0 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

# Configure Tunnel 1 as the backup interface of Tunnel 0.

[DeviceA-Tunnel0] gre p2mp backup-interface tunnel 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

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

system-view

[DeviceB] interface tunnel 0

[DeviceB-Tunnel0] ip address 172.168.2.2 255.255.255.0

# Configure the tunnel encapsulation mode of interface Tunnel 0 as P2MP GRE.

[DeviceB-Tunnel0] tunnel-protocol gre p2mp

# Configure the source IP address of interface Tunnel 0.

[DeviceB-Tunnel0] source 11.1.1.2

# Configure the mask of the branch network connected to Tunnel 0 as 255.255.255.0.

[DeviceB-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

[DeviceB-Tunnel0] quit

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

[DeviceB] ip route-static 192.168.12.0 255.255.255.0 tunnel 0

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

[DeviceB] interface tunnel 1

[DeviceB-Tunnel1] ip address 192.168.22.2 255.255.255.0

# Configure the tunnel encapsulation mode of interface Tunnel 1 as GRE over IPv4.

[DeviceB-Tunnel1] tunnel-protocol gre

# Configure the source and destination IP addresses of interface Tunnel 1.

[DeviceB-Tunnel1] source 10.1.1.2

[DeviceB-Tunnel1] destination 10.1.1.1

[DeviceB-Tunnel1] quit

Step3

Configure Device C

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

system-view

[DeviceC] interface tunnel 0