R211x-HP Flexfabric 11900 Layer 3 - IP Routing Command Reference

283
4. Original MED of a BGP route, or MED changed from the metric of a redistributed IGP route.
Examples
# In BGP IPv4 unicast address family view, configure the default MED as 25.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] default med 25
# In BGP-VPN IPv6 unicast address family view, configure the default MED as 25.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv6 unicast
[Sysname-bgp-ipv6-vpn1] default med 25
Related commands
apply cost
import-route
route-policy
default-route imported
Use default-route imported to enable default route redistribution into the BGP routing table.
Use undo default-route imported to restore the default.
Syntax
default-route imported
undo default-route imported
Default
Default route redistribution is not enabled.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast
address family view, BGP-VPN IPv6 unicast address family view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
By default, BGP does not redistribute default IGP routes. You must use the default-route imported
command together with the import-route command to redistribute default IGP routes into the BGP routing
table.
Examples
# In BGP IPv4 unicast address family view, enable default route redistribution from OSPF process 1 into
the BGP routing table.
<Sysname> system-view