beautypg.com

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

Page 174

background image

28

[DeviceB-GigabitEthernet1/1] quit

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

[DeviceB] interface GigabitEthernet 2/1

[DeviceB-GigabitEthernet2/1] ip address 3.1.1.1 255.255.255.0

[DeviceB-GigabitEthernet2/1] quit

# Create the interface tunnel 2.

[DeviceB] interface tunnel 2

# Configure an IPv4 address for the interface tunnel 2.

[DeviceB-Tunnel2] ip address 10.1.2.2 255.255.255.0

# Configure the tunnel encapsulation mode.

[DeviceB-Tunnel2] tunnel-protocol ipv4-ipv4

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

[DeviceB-Tunnel2] source 3.1.1.1

# Configure a destination address for the interface tunnel 2 (IP address of GigabitEthernet 2/0 of Device

A).

[DeviceB-Tunnel2] destination 2.1.1.1

[DeviceB-Tunnel2] quit

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

[DeviceB] ip route-static 10.1.1.0 255.255.255.0 tunnel 2

Configuration verification

After the above configuration, display the status of the tunnel interfaces on Device A and Device B,

respectively.

[DeviceA] display interface tunnel 1

Tunnel1 current state: UP

Line protocol current state: UP

Description: Tunnel1 Interface

The Maximum Transmit Unit is 64000

Internet Address is 10.1.2.1/24 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set

Tunnel source 2.1.1.1, destination 3.1.1.1

Tunnel protocol/transport IP/IP

Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0

Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0

Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0

Last 300 seconds input: 0 bytes/sec, 0 packets/sec

Last 300 seconds output: 2 bytes/sec, 0 packets/sec

4 packets input, 256 bytes

0 input error

12 packets output, 768 bytes

0 output error

[DeviceB] display interface tunnel 2

Tunnel2 current state: UP

Line protocol current state: UP

Description: Tunnel2 Interface