HP 6125XLG R2306-HP 6125XLG Blade Switch MCE Configuration Guide - Page 16

Command, Remarks, Layer 3-IP Routing Configuration Guide

Page 16 highlights

Step 4. (Optional.) Configure the OSPF domain ID. Command Remarks domain-id domain-id [ secondary ] By default, the domain ID is 0. The defaults are as follows: 5. (Optional.) Configure the type codes of OSPF extended ext-community-type { domain-id type-code1 | router-id type-code2 • 0x0005 for Domain ID. community attributes. | route-type type-code3 } • 0x0107 for Router ID. • 0x0306 for Route Type. 6. (Optional.) Configure the external route tag for imported VPN routes. route-tag tag-value By default, no route tag is configured. In some networks, a VPN might be connected to multiple MCEs. When one MCE advertise the routes learned from BGP to the VPN, the other MCEs might learn the routes, resulting in routing loops. To avoid such routing loops, you can configure route tags for VPN instances on an MCE. H3C recommends configuring the same route tag for the same VPN on the MCEs. 7. Redistribute the VPN routes. import-route protocol [ process-id | allow-ibgp ] [ cost cost | type type | tag tag | route-policy route-policy-name ] * By default, no route of any other routing protocol is redistributed into OSPF. 8. (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 PE. 9. (Optional.) Configure a filtering policy to filter the redistributed routes. 10. (Optional.) Configure the default parameters for redistributed routes. filter-policy { acl-number [ gateway ip-prefix-name ] | gateway ip-prefix-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] | route-policy route-policy-name } import By default, redistributed routes are not filtered. default { cost cost | tag tag | type The default cost is 1, the default tag type } * is 1, and the default type is Type-2. 11. Create an OSPF area and enter OSPF area view. area area-id By default, no OSPF area is created. 12. Enable OSPF on the interface attached to the specified network in the area. network ip-address wildcard-mask Required By default, an interface does not run OSPF. For more information about OSPF, see Layer 3-IP Routing Configuration Guide. 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52

13
Step
Command
Remarks
4.
(Optional.) Configure the
OSPF domain ID.
domain-id
domain-id
[
secondary
]
By default, the domain ID is 0.
5.
(Optional.) Configure the type
codes of OSPF extended
community attributes.
ext-community-type
{
domain-id
type-code1
|
router-id
type-code2
|
route-type
type-code3
}
The defaults are as follows:
0x0005 for Domain ID.
0x0107 for Router ID.
0x0306 for Route Type.
6.
(Optional.) Configure the
external route tag for
imported VPN routes.
route-tag
tag-value
By default, no route tag is
configured.
In some networks, a VPN might be
connected to multiple MCEs.
When one MCE advertise the
routes learned from BGP to the
VPN, the other MCEs might learn
the routes, resulting in routing
loops. To avoid such routing loops,
you can configure route tags for
VPN instances on an MCE. H3C
recommends configuring the same
route tag for the same VPN on the
MCEs.
7.
Redistribute the VPN routes.
import-route
protocol
[
process-id
|
allow-ibgp
] [
cost
cost
|
type
type
|
tag
tag
|
route-policy
route-policy-name
] *
By default, no route of any other
routing protocol is redistributed
into OSPF.
8.
(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 PE.
9.
(Optional.) Configure a
filtering policy to filter the
redistributed routes.
filter-policy
{
acl-number
[
gateway
ip-prefix-name
] |
gateway
ip-prefix-name
|
ip-prefix
ip-prefix-name
[
gateway
ip-prefix-name
]
| route-policy
route-policy-name
}
import
By default, redistributed routes are
not filtered.
10.
(Optional.) Configure the
default parameters for
redistributed routes.
default
{
cost
cost
|
tag
tag
|
type
type
} *
The default cost is 1, the default tag
is 1, and the default type is Type-2.
11.
Create an OSPF area and
enter OSPF area view.
area
area-id
By default, no OSPF area is
created.
12.
Enable OSPF on the interface
attached to the specified
network in the area.
network
ip-address wildcard-mask
Required
By default, an interface does not
run OSPF.
For more information about OSPF, see
Layer 3—IP Routing Configuration Guide
.