Reset Search
 

 

Article

How to use access-list to count incoming BGP packets to the switch

« Go Back

Information

 
TitleHow to use access-list to count incoming BGP packets to the switch
Objective
To write an access-list to count incoming BGP packets.
Environment
EXOS all.
Summit and BlackDiamond Switches.
Procedure
1. Create a policy file as below:
entry ent001  {
if {
source-address <BGP-peer1-IP>;
destination-address <BGP-peer2-IP>;
protocol TCP;
destination-port 179;
} then {
count bgp1-to-bgp2;
permit;
}
}
2. Apply the above policy in the ingress port of the switch connected to the BGP  peer.
 
configure access-list <policy name> port <port number> ingress
3. Use the counters to check if the packet is incoming.
show access-list counter

4. If the hardware supports the egress ACL, we can apply this to the egress port and count if the packets are leaving the switch.
 
configure access-list <policy name> port <port number> egress

show access-list counter egress


 
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255