Allied Telesis X908 Network Router User Manual


 
Use Route Maps and Other Filters to Filter and Alter BGP and OSPF Routes | Page 9
Hierarchy of the Different Filters
Basic configuration
This configuration gets the neighbor relationship established and some routes exchanged.
AlliedWare Plus
switch
Create the second VLAN and associate port1.0.2 with it; assign IP addresses; and configure
BGP.
vlan database
vlan 64 name v64
interface port1.0.2
switchport access vlan 64
interface vlan1
ip address 45.45.45.45/24
interface vlan64
ip address 64.64.64.64/4
router bgp 34567
redistribute connected
neighbor 45.45.45.46 remote-as 34568
AlliedWare
switch
Create the second VLAN and associate port52 with it; assign IP addresses; and configure
BGP.
create vlan="v2" vid=2
add vlan="2" port=52
enable ip
set ip autonomous=34568
add ip int=vlan1 ip=45.45.45.46
add ip int=vlan2 ip=52.52.52.5
set bgp ro=45.45.45.46
add bgp pe=45.45.45.45 rem=34567
ena bgp pe=45.45.45.45
add bgp imp=interface
Note: The prefix lengths on the UIP addresses on VLAN1 of the two switches are different.
The VLAN1 address on the AlliedWarePlus switch has prefix length 24, and that on
the AlliedWare switch has prefix length 8. Although this is a non-standard, and not
recommended, configuration, it has been done deliberately for the purposes of the
illustrative examples in this How To Note. By having different prefix lengths on those
addresses, it is clear in the route tables of the two switches which of the 45.x.x.x
routes is a connected route, and which is a BGP-learnt route.