EasyManua.ls Logo

Huawei quidway s7700 - Page 287

Huawei quidway s7700
833 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
# Configure a default route from the agent server of the VPN to the Internet. The next hop is P.
Specify the address of the next hop as a public network address. That is, add the keyword
public to the right of the next hop address in the command.
<PE1> system-view
[PE1] ip route-static vpn-instance vpn1 0.0.0.0 0 100.1.1.2 public
NOTE
If the CE and PE are connected through the Ethernet, you must specify the next hop.
# Configure a static route from the Internet to the agent server. The next hop is CE1.
[PE1] ip route-static 100.3.1.1 24 vpn-instance vpn1 10.1.1.1
# Advertise the static route from PE1 to the agent server to the Internet through IGP.
[PE1] ospf 1
[PE1-ospf-1] import-route static
# Configure the agent server. Set the IP address of the agent server to 100.3.1.1/24. Specify CE1
as the default gateway (100.3.1.2/24) of the agent server. In addition, the agent software should
be run on the agent server.
Step 6 Verify the configuration.
Run the display ip routing-table vpn-instance command on PE1, and you can see that a default
route exists in the routing table of VPN 1. The next hop address is 100.1.1.2 and the outgoing
interface is Vlanif10.
[PE1] display ip routing-table vpn-instance vpn1
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpn1
Destinations : 8 Routes : 8
Destination/Mask Proto Pre Cost Flags NextHop Interface
0.0.0.0/0 Static 60 0 RD 100.1.1.2 Vlanif10
10.1.1.0/24 Direct 0 0 D 10.1.1.2 Vlanif30
10.1.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.2.1.0/24 BGP 255 0 RD 3.3.3.3 Vlanif10
100.3.1.1/32 BGP 255 0 D 10.1.1.1 Vlanif30
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Run the display ip routing-table command on PE1, and you can see the route destined for the
agent in the routing table of the public network. The next hop address is 10.1.1.1.
[PE1] display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost Flags NextHop Interface
1.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
2.2.2.2/32 OSPF 10 2 D 100.1.1.2 Vlanif10
3.3.3.3/32 OSPF 10 3 D 100.1.1.2 Vlanif10
100.1.1.0/24 Direct 0 0 D 100.1.1.1 Vlanif10
100.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
100.1.1.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
100.2.1.0/24 OSPF 10 2 D 100.1.1.2 Vlanif10
100.3.1.0/24 Static 60 0 D 10.1.1.1 Vlanif30
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
P can ping the agent server.
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
272

Table of Contents

Other manuals for Huawei quidway s7700

Related product manuals