Allied Telesis VERSION 5.4.3-2.6 Switch User Manual


 
BGP and BGP4+ Configuration
Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches
2.20 AlliedWare Plus
TM
Operating System - Software Version 5.4.3-2.6 C613-50032-01 REV D
Configuring BGP Weight per Peer
You can assign a different weight per address family of a peer. For example, a network can
be configured to prefer IPv6 routes from one peer and IPv4 routes from another peer.
If the neighbor weight command is given under a specific address family mode, then the
peer weight is set for that specific address family. If the address family is not specifically set
first, then the weight is updated for the default address family instead.
This example shows configuring the BGP Weight per Peer both for IPv4 Address Family
and for IPv6 Address Family. Router 1 (AS100) uses IPv4 Address Family, Router 2 (AS200)
uses both IPv4 and IPv6 Address Family, Router 3 (AS300) uses IPv6 Address Family.
Router 11
bgp_weight
Router 1
10.10.10.10
Router 2
10.10.10.20
AS100 AS200
Router 3
AS300
2001:db8::115
2001:db8::116
awplus(config)#
configure terminal
Enter the Global Configuration mode.
awplus(config-router)#
router bgp 100
Define the BGP routing process. The number 100
specifies the AS number of Router 1.
awplus(config-router)#
address-family ipv4 unicast
Enter the IPv4 Address Family Configuration mode from
the Global Configuration mode.
awplus(config-router-af)#
neighbor 10.10.10.20 remote-as 200
Specify the neighbor’s IPv4 address (10.10.10.20) and
Autonomous System (AS) number (200). Router 2 is the
neighbor of Router 1.
awplus(config-router-af)#
neighbor 10.10.10.20 activate
Activate the exchange of information to the peer
(neighbor) with the IPv4 address 10.10.10.20 for
Router 2 in IPv4 Address Family Configuration mode.
Note that other information apart from prefixes is sent in
updates. This command activates the exchange of
information for the peer defined.
awplus(config-router-af)#
exit-address-family
Exit IPv4 Address Family Configuration mode, and return
to the Router Configuration mode.
awplus(config-router)#
exit
Exit the Router Configuration mode, and return to the
Global Configuration mode.