enable ospfv3 export

enable ospfv3 export [direct | ripng | static | isis | isis-level-1 | isis-level-1-external | isis-level-2 | isis-level-2-external| bgp | e-bgp | i-bgp |host-mobility] [cost cost type [ase-type-1 | ase-type-2] | policy_map]

Description

Enables redistribution of routes to OSPFv3.

Syntax Description

direct Specifies direct routes.
ripng Specifies RIPng routes.
static Specifies static routes.
isis Specifies IS-IS routes.
isis-level-1 Specifies IS-IS Level 1 routes.
isis-level-1-external Specifies IS-IS Level 1 External routes.
isis-level-2 Specifies IS-IS Level 2 routes.
isis-level-2-external Specifies IS-IS Level 2 External routes.
bgp Specifies BGP IPv6 routes.
i-bgp Specifies internal BGP IPv6 routes.
e-bgp Specifies external BGP IPv6 routes.
host-mobility Specifies host-mobility routes.
cost Specifies a cost metric.
ase-type-1 Specifies AS-external type 1 routes.
ase-type-2 Specifies AS-external type 2 routes.
number Specifies a tag value.
policy_map Specifies a policy.

Default

The default setting is disabled.

Usage Guidelines

The cost metric is inserted for all RIPng-learned, static, and direct routes injected into OSPFv3. If the cost metric is set to 0, the cost is inserted from the route.

The same cost and type values can be inserted for all the export routes, or a policy can be used for selective insertion. When a policy is associated with the export command, the policy is applied on every exported route. The exported routes can also be filtered using a policy.

Policy files for this command will only recognize the following policy attributes:
  • Match attributes
    • nlri IPv6-address/mask-len
  • Action (set) attributes
    • cost <cost>
    • cost-type [ase-type-1 | ase-type-2]
    • permit
    • deny

Any other policy attribute will not be recognized and will be ignored.

The following is an example OSPFv3 export policy file:

entry first {
	if match any{
		nlri 2001:db8:200:300:/64;
		nlri 2001:db8:2146:23d1::/64;
		nlri 2001:db8:af31:3d0::/64;
		nlri 2001:db8:f6:2341::/64;
	} then {
		deny;
	}
}
entry second {
	if match any{
		nlri 2001:db8:304::/48;
		nlri 2001:db8:ca11::/48;
		nlri 2001:db8:da36::/48;
		nlri 2001:db8:f6a6::/48;
	} then {
		cost 220;
		cost-type ase-type-2;
		permit;
	}
}

Example

The following command enables OSPFv3 to export RIPng-related routes and associates a policy redist:

enable ospfv3 export ripng redist

History

This command was first available in ExtremeXOS 11.2.

The tag keyword was removed in ExtremeXOS 11.4.

Platform Availability

This command is available on platforms with Base license, or higher, as described in the Switch Engine 32.3 Feature License Requirements document.