Huawei quidway s7700 Configuration Manual page 287

Smart routing switch
Hide thumbs Also See for quidway s7700:
Table of Contents

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
# 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
# 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
Destination/Mask
255.255.255.255/32
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
Destination/Mask
127.255.255.255/32
255.255.255.255/32
P can ping the agent server.
Issue 01 (2011-07-15)
NOTE
If the CE and PE are connected through the Ethernet, you must specify the next hop.
Destinations : 8
Proto
0.0.0.0/0
Static 60
10.1.1.0/24
Direct 0
10.1.1.2/32
Direct 0
10.1.1.255/32
Direct 0
10.2.1.0/24
BGP
100.3.1.1/32
BGP
Direct 0
Destinations : 12
Proto
1.1.1.1/32
Direct 0
2.2.2.2/32
OSPF
3.3.3.3/32
OSPF
100.1.1.0/24
Direct 0
100.1.1.1/32
Direct 0
100.1.1.255/32
Direct 0
100.2.1.0/24
OSPF
100.3.1.0/24
Static 60
127.0.0.0/8
Direct 0
127.0.0.1/32
Direct 0
Direct 0
Direct 0
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Routes : 8
Pre
Cost
Flags
0
RD
0
0
0
255
0
RD
255
0
0
Routes : 12
Pre
Cost
Flags
0
10
2
10
3
0
0
0
10
2
0
0
0
0
0
3 BGP MPLS IP VPN Configuration
NextHop
Interface
100.1.1.2
Vlanif10
D
10.1.1.2
Vlanif30
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
3.3.3.3
Vlanif10
D
10.1.1.1
Vlanif30
D
127.0.0.1
InLoopBack0
NextHop
Interface
D
127.0.0.1
InLoopBack0
D
100.1.1.2
Vlanif10
D
100.1.1.2
Vlanif10
D
100.1.1.1
Vlanif10
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
D
100.1.1.2
Vlanif10
D
10.1.1.1
Vlanif30
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
D
127.0.0.1
InLoopBack0
272

Advertisement

Table of Contents
loading

Table of Contents