9
Step Command
Remarks
7.
(Optional.) Configure OSPF
to redistribute the default
route.
default-route-advertise summary
cost
cost
By default, OSPF does not
redistribute the default route.
This command redistributes the
default route in a Type-3 LSA. The
MCE advertises the default route to
the site.
8.
Create an OSPF area and
enter OSPF area view.
area
area-id
By default, no OSPF area is
created.
9.
Enable OSPF on the interface
attached to the specified
network in the area.
network
ip-address wildcard-mask
By default, an interface neither
belongs to any area nor runs
OSPF.
Configuring EBGP between an MCE and a VPN site
To run EBGP between an MCE and a VPN site, you must configure a BGP peer for each VPN instance
on the MCE, and redistribute the IGP routes of each VPN instance on the VPN site.
You can configure filtering policies to filter received routes and advertised routes.
1.
Configure the MCE:
Routes redistributed from OSPF to BGP have their OSPF attributes removed. To enable BGP to
distinguish routes redistributed from different OSPF domains, you must enable the redistributed
routes to carry the OSPF domain ID by configuring the
domain-id
command in OSPF view. The
domain ID is added to BGP VPN routes as an extended community attribute.
To configure the MCE:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp
as-number
N/A
3.
Enter BGP-VPN instance
view.
ip vpn-instance
vpn-instance-name
N/A
4.
Configure an EBGP peer.
peer
{
group-name
|
ip-address
}
as-number
as-number
By default, no BGP peer is
configured.
5.
Enter BGP-VPN IPv4
unicast address family
view.
address-family ipv4
[
unicast
]
N/A
6.
Enable BGP to exchange
IPv4 unicast routes with the
peer.
peer
{
group-name
|
ip-address
}
enable
By default, BGP does not
exchange IPv4 unicast routes
with any peer.