R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
306
Examples
# Apply export routing policy poly-1 to VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] export route-policy poly-1
# Apply export routing policy poly-2 to the IPv4 VPN of VPN instance vpn2.
<Sysname> system-view
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] ipv4-family
[Sysname-vpn-ipv4-vpn2] export route-policy poly-2
ext-community-type
Use ext-community-type to configure the type code of an OSPF extended community attribute.
Use undo ext-community-type to restore the default.
Syntax
ext-community-type { domain-id type-code1 | router-id type-code2 | route-type type-code3 }
undo ext-community-type { domain-id | router-id | route-type }
Default
The type codes for the OSPF extended community attributes of Domain ID, Router ID, and Route Type are
0x0005, 0x0107, and 0x0306, respectively.
Views
OSPF view
Default command level
2: System level
Parameters
domain-id type-code1: Specifies the type code for the OSPF extended community attribute of Domain ID.
Valid values are 0x0005, 0x0105, 0x0205, and 0x8005.
router-id type-code2: Specifies the type code for the OSPF extended community attribute of Router ID.
Valid values are 0x0107 and 0x8001.
router-type type-code3: Specifies the type code for the OSPF extended community attribute of Route
Type. Valid values are 0x0306 and 0x8000.
Examples
# Configure the type codes of OSPF extended community attributes Domain ID, Router ID, and Route
Type as 0x8005, 0x8001, and 0x8000 for OSPF process 100.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] ext-community-type domain-id 8005
[Sysname-ospf-100] ext-community-type router-id 8001
[Sysname-ospf-100] ext-community-type route-type 8000










