R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)
223
# Configure an IPv4 address for Ethernet 1/1.
<RouterA> system-view
[RouterA] interface ethernet 1/1
[RouterA-Ethernet1/1] ip address 10.1.1.1 255.255.255.0
[RouterA-Ethernet1/1] quit
# Configure an IPv4 address for Serial 2/0 (the physical interface of the tunnel).
[RouterA] interface serial 2/0
[RouterA-Serial2/0] ip address 2.1.1.1 255.255.255.0
[RouterA-Serial2/0] quit
# Create interface Tunnel 1.
[RouterA] interface tunnel 1
# Configure an IPv4 address for interface Tunnel 1.
[RouterA-Tunnel1] ip address 10.1.2.1 255.255.255.0
# Configure the tunnel encapsulation mode as IPv4 over IPv4.
[RouterA-Tunnel1] tunnel-protocol ipv4-ipv4
# Configure the source address for interface Tunnel 1 (IP address of Serial 2/0).
[RouterA-Tunnel1] source 2.1.1.1
# Configure the destination address for interface Tunnel 1 (IP address of Serial 2/1 of Router B).
[RouterA-Tunnel1] destination 3.1.1.1
[RouterA-Tunnel1] quit
# Configure a static route destined for the IP network Group 2 through interface Tunnel 1.
[RouterA] ip route-static 10.1.3.0 255.255.255.0 tunnel 1
• Configure Router B:
# Configure an IPv4 address for Ethernet 1/1.
<RouterB> system-view
[RouterB] interface ethernet 1/1
[RouterB-Ethernet1/1] ip address 10.1.3.1 255.255.255.0
[RouterB-Ethernet1/1] quit
# Configure an IPv4 address for Serial 2/1 (the physical interface of the tunnel).
[RouterB] interface serial 2/1
[RouterB-Serial2/1] ip address 3.1.1.1 255.255.255.0
[RouterB-Serial2/1] quit
# Create interface Tunnel 2.
[RouterB] interface tunnel 2
# Configure an IPv4 address for interface Tunnel 2.
[RouterB-Tunnel2] ip address 10.1.2.2 255.255.255.0
# Configure the tunnel encapsulation mode as IPv4 over IPv4.
[RouterB-Tunnel2] tunnel-protocol ipv4-ipv4
# Configure the source address for interface Tunnel 2 (IP address of Serial 2/1).
[RouterB-Tunnel2] source 3.1.1.1
# Configure a destination address for interface Tunnel 2 (IP address of Serial 2/0 of Router A).
[RouterB-Tunnel2] destination 2.1.1.1
[RouterB-Tunnel2] quit
# Configure a static route destined for the IP network Group 1 through interface Tunnel 2.
[RouterB] ip route-static 10.1.1.0 255.255.255.0 tunnel 2










