Alcatel-Lucent 9000 Switch User Manual


 
Configuring a BGP Peer Configuring BGP
page 4-30 OmniSwitch 6800/6850/9000 Advanced Routing Configuration Guide December 2007
Changing the Local Router Address for a Peer Session
By default, TCP connections to a peer's address are assigned to the closest interface based on reachability.
Any operational local interface can be assigned to the BGP peering session by explicitly forcing the TCP
connection to use the specified interface. The ip bgp neighbor update-source command sets the local
interface address or the name through which this BGP peer can be contacted.
For example, to configure a peer with an IP address of 120.5.4.6 to be contacted via 120.5.4.10, enter the
ip bgp neighbor update-source command as shown:
-> ip bgp neighbor 120.5.4.6 update-source 12.5.4.10
Alternatively, you can enter the name of the local IP interface, instead of the IP address as shown below:
-> ip bgp neighbor 120.5.4.6 update-source vlan-23
Clearing Statistics for a Peer
BGP tracks the number of messages sent to and received from other peers. It also breaks down messages
into UPDATE, NOTIFICATION, and TRANSITION categories. You can reset, or clear, the statistics for a
peer using the ip bgp peer stats-clear command. For example the following use of the ip bgp neighbor
stats-clear command would clear statistics for the peer at address 190.17.20.16:
-> ip bgp neighbor 190.17.20.16 stats-clear
The statistics that are cleared are shown in the show ip bgp neighbors statistics command. The following
is an example of output from this command:
-> show ip bgp neighbors statistics 190.17.20.16
Neighbor address = 190.17.20.16,
# of UP transitions = 0,
Time of last UP transition = 00h:00m:00s,
# of DOWN transitions = 0,
Time of last DOWN transition = 00h:00m:00s,
Last DOWN reason = none,
# of msgs rcvd = 0,
# of Update msgs rcvd = 0,
# of prefixes rcvd = 0,
# of Route Refresh msgs rcvd = 0,
# of Notification msgs rcvd = 0,
Last rcvd Notification reason = none [none]
Time last msg was rcvd = 00h:00m:00s,
# of msgs sent = 0,
# of Update msgs sent = 0,
# of Route Refresh msgs sent = 0
# of Notification msgs sent = 0,
Last sent Notification reason = none [none],
Time last msg was sent = 00h:00m:00s