Matching on a bgp4 static network, Matching on an interface, Setting the next-hop of a bgp4 route – Brocade Network OS Administrator’s Guide v4.1.1 User Manual
Page 638: Deleting a community from a bgp4 route

NOTE
These commands configure an additional community ACL, std_2, that contains community numbers
23:45 and 57:68. Route map mycommroutemap3 compares each BGP4 route against the sets of
communities in ACLs std_1 and std_2. A BGP4 route that contains either but not both sets of
communities matches the route map. For example, a route containing communities 23:45 and 57:68
matches. However, a route containing communities 23:45, 57:68 and 12:34, or communities 23:45,
57:68, 12:34, and "no-export" does not match. To match, the route communities must be the same as
those in exactly one of the community ACLs used by the match community statement.
Matching on a BGP4 static network
To configure a route map that matches on a static network:
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)# route-map mystaticroutemap3 permit 1
switch(config-routemap-mystaticroutemap3/permit/1)# match protocol bgp static-network
switch(config-routemap-mystaticroutemap3/permit/1)# set local-preference 150
switch(config-routemap-mystaticroutemap3/permit/1)# set community no-export
switch(config-routemap-mystaticroutemap3/permit/1)# exit
switch(config)# router bgp
switch(config-bgp)# neighbor 192.168.6.0 route-map out mystaticroutemap3
Matching on an interface
To configure a route map that matches on an interface:
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)# route-map myintroutemap1 permit 99
switch(config-rbridge-id-5)# match interface ten 5/1/1 ten 5/3/2
Setting a BGP4 route MED to equal the next-hop route IGP metric
To set a route’s Multi-Exit Discriminator (MED) to the same value as the IGP metric of the BGP4 next-
hop route, when advertising the route to a neighbor:
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)# route-map mymedroutemap1 permit 1
switch(config-routemap-mymedroutemap/permit/1)# match ip address 1
switch(config-routemap-mymedroutemap/permit/1)# set metric-type internal
Setting the next-hop of a BGP4 route
To set the next-hop address of a BGP4 route to a neighbor address:
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)# route-map mhoproutemap1 permit 1
switch(config-routemap-myhoproutemap/permit/1)# match ip address 1
switch(config-routemap-myhoproutemap/permit/1)# set ip next-hop peer-address
Deleting a community from a BGP4 route
To delete a community from a BGP4 route’s community attributes field:
switch(config)# rbridge-id 5
switch(config-rbridge-id-5)# ip community-list standard std_3 permit 12:99 12:86
switch(config-rbridge-id-5)# route-map mcommroutemap1 permit 1
switch(config-routemap-mycommroutemap/permit/1)# match ip address 1
switch(config-routemap-mycommroutemap/permit/1)# set comm-list std_3 delete
Matching on a BGP4 static network
638
Network OS Administrator’s Guide
53-1003225-04