856
Configuring IP Unicast Routing
Configuring BGP
DETAILED STEPS
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
router bgp
autonomous-system
Enable a BGP routing process, assign it an AS
number, and enter router configuration mode.
3.
bgp best-path as-path ignore
(Optional) Configure the router to ignore AS path
length in selecting a route.
4.
neighbor
{
ip-address
|
peer-group-name
}
next-hop-self
(Optional) Disable next-hop processing on BGP
updates to a neighbor by entering a specific IP
address to be used instead of the next-hop
address.
5.
neighbor
{
ip-address
|
peer-group-name
}
weight
weight
(Optional) Assign a weight to a neighbor
connection. Acceptable values are from 0 to
65535; the largest weight is the preferred route.
Routes learned through another BGP peer have a
default weight of 0; routes sourced by the local
router have a default weight of 32768.
6.
default-metric
number
(Optional) Set a MED metric to set preferred paths
to external neighbors. All routes without a MED will
also be set to this value. The range is 1 to
4294967295. The lowest value is the most
desirable.
7.
bgp bestpath med missing-as-worst
(Optional) Configure the switch to consider a
missing MED as having a value of infinity, making
the path without a MED value the least desirable
path.
8.
bgp always-compare med
(Optional) Configure the switch to compare MEDs
for paths from neighbors in different autonomous
systems. By default, MED comparison is only done
among paths in the same AS.
9.
bgp bestpath med confed
(Optional) Configure the switch to consider the
MED in choosing a path from among those
advertised by different subautonomous systems
within a confederation.
10.
bgp deterministic med
(Optional) Configure the switch to consider the
MED variable when choosing among routes
advertised by different peers in the same AS.
11.
bgp default local-preference
value
(Optional) Change the default local preference
value. The range is 0 to 4294967295; the default
value is 100. The highest local preference value is
preferred.
12.
maximum-paths
number
(Optional) Configure the number of paths to be
added to the IP routing table. The default is to only
enter the best path in the routing table. The range
is from 1 to 8. Having multiple paths allows load
balancing among the paths.
13.
end
Return to privileged EXEC mode.
14.
show ip bgp
show ip bgp neighbors
Verify the reset by checking information about the
routing table and about BGP neighbors.
15.
copy running-config startup-config
(Optional) Save your entries in the configuration
file.
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...