H3C Technologies H3C S5560 Series Switches User Manual
Page 247

231
Step Command
Remarks
2.
Enter BGP view or BGP-VPN
instance view.
•
Enter BGP view:
bgp as-number
•
Enter BGP-VPN instance view:
a.
bgp as-number
b.
ip vpn-instance
vpn-instance-name
N/A
3.
Enter BGP IPv6 unicast
address family view or
BGP-VPN IPv6 unicast
address family view.
address-family ipv6 [ unicast ]
N/A
4.
Configure the default MED
value.
default med med-value
The default MED value is 0.
Enabling MED comparison for routes from different ASs
This task enables BGP to compare the MEDs of routes from different ASs.
To enable MED comparison for routes from different ASs (IPv4):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view or BGP-VPN
instance view.
•
Enter BGP view:
bgp as-number
•
Enter BGP-VPN instance view:
a.
bgp as-number
b.
ip vpn-instance
vpn-instance-name
N/A
3.
Enter BGP IPv4 unicast
address family view or
BGP-VPN IPv4 unicast
address family view.
address-family ipv4 [ unicast ]
N/A
4.
Enable MED comparison for
routes from different ASs.
compare-different-as-med
By default, this feature is disabled.
To enable MED comparison for routes from different ASs (IPv6):
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp as-number
N/A
3.
Enter BGP IPv6 unicast
address family view.
address-family ipv6 [ unicast ]
N/A
4.
Enable MED comparison for
routes from different ASs.
compare-different-as-med
By default, this feature is disabled.
Enabling MED comparison for routes on a per-AS basis
This task enables BGP to compare the MEDs of routes from an AS.