cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
521
Views
1
Helpful
2
Replies

Exclude interface Po from show mac address-table

zsombi30
Level 1
Level 1

Hi,

Does anyone know how can I exclude the port-channel interface from the mac address table?

I already excluded the trunk interfaces that the etherchannel use, but still getting all the mac addresses through the uplinks because of the port-channel interface.

Thanks,

1 Accepted Solution

Accepted Solutions

liviu.gheorghe
Spotlight
Spotlight

Hello @zsombi30 ,

you can use the show mac address-table | exclude command:

SW_PROD#sho mac address-table
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All 0180.c200.0021 STATIC CPU
All ffff.ffff.ffff STATIC CPU
1 000c.299f.0eed DYNAMIC Gi1/0/24
1 40a6.b77b.1009 DYNAMIC Gi1/0/24
1 acbc.d9c5.0334 DYNAMIC Gi1/1/4
1 c829.c88a.d016 DYNAMIC Po1
1 c829.c88a.d017 DYNAMIC Po1
255 0013.6015.e621 DYNAMIC Gi1/0/8
255 10f9.203b.87a8 DYNAMIC Gi1/0/3
255 4891.d51a.ef74 DYNAMIC Gi1/0/18
255 549f.c68e.7dcb STATIC Vl255
255 acbc.d9c5.034b DYNAMIC Gi1/1/4
255 c829.c88a.d030 DYNAMIC Po1
255 e44e.2d55.1df0 DYNAMIC Gi1/0/20
15 000c.29b0.fa7a DYNAMIC Gi1/0/24
15 0050.569f.3e5a DYNAMIC Gi1/1/4
15 c829.c88a.d030 DYNAMIC Po1
25 000c.292a.8e3d DYNAMIC Gi1/0/24
25 000c.2939.484c DYNAMIC Gi1/1/4
25 000c.293a.9ee4 DYNAMIC Gi1/0/21
25 000c.2946.2212 DYNAMIC Gi1/0/24
25 000c.294a.9b73 DYNAMIC Gi1/0/24
25 000c.297a.5357 DYNAMIC Gi1/0/21
25 000c.29b3.c04b DYNAMIC Gi1/0/24
25 000c.29bf.ff96 DYNAMIC Gi1/0/4
25 000c.29c1.0273 DYNAMIC Gi1/0/21
25 000c.29da.eb80 DYNAMIC Gi1/0/24
25 000c.29f8.29d1 DYNAMIC Gi1/0/24
25 0011.3299.e99a DYNAMIC Gi1/0/14
25 0050.569f.332b DYNAMIC Gi1/0/24
25 0050.569f.e54a DYNAMIC Gi1/0/24
25 04ec.d88f.28f7 DYNAMIC Gi1/0/9
25 10f9.203b.87ae DYNAMIC Gi1/0/4
25 26ea.5920.dbfb DYNAMIC Gi1/0/9
25 2829.866a.d584 DYNAMIC Gi1/0/17
25 28cf.dab2.addd DYNAMIC Gi1/0/9
25 36d7.1fa2.2cdf DYNAMIC Gi1/0/9
25 40b5.c1c5.a080 DYNAMIC Gi1/0/12
25 5254.0001.72e7 DYNAMIC Gi1/0/21
25 5254.0018.a6f7 DYNAMIC Gi1/0/21
25 683a.1e32.b5f8 DYNAMIC Gi1/0/9
25 9c93.4ed3.1c0f DYNAMIC Gi1/0/15
25 a88f.d957.8066 DYNAMIC Gi1/0/9
25 c829.c88a.d030 DYNAMIC Po1
25 dc0b.09f3.fe53 DYNAMIC Gi1/0/9
25 dc8b.285e.0e57 DYNAMIC Gi1/0/9
25 e44e.2d55.1df6 DYNAMIC Gi1/0/21
25 ec2e.988f.6553 DYNAMIC Gi1/0/9
14 000c.29eb.3ab8 DYNAMIC Gi1/0/4
14 549f.c68e.7dc6 STATIC Vl14
14 c829.c88a.d030 DYNAMIC Po1
26 000c.294b.aca9 DYNAMIC Gi1/0/24
26 549f.c68e.7de5 STATIC Vl26
26 c829.c88a.d030 DYNAMIC Po1
24 40a6.b7be.9c48 DYNAMIC Gi1/1/4
24 40a6.b7be.9d9c DYNAMIC Gi1/1/4
24 549f.c68e.7dc1 STATIC Vl24
24 c829.c88a.d030 DYNAMIC Po1
66 40a6.b7be.9d9d DYNAMIC Gi1/1/4
66 549f.c68e.7dcb STATIC Vl66
Total Mac Addresses for this criterion: 79
SW_PROD#
SW_PROD#sho etherc
SW_PROD#sho etherchannel sum
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator

M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port

A - formed by Auto LAG


Number of channel-groups in use: 1
Number of aggregators: 1

Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi1/0/1(P) Gi1/0/2(P)

SW_PROD#show mac address-table | e Po1|Gi1/0/1|Gi1/0/2
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All 0180.c200.0021 STATIC CPU
All ffff.ffff.ffff STATIC CPU
1 acbc.d9c5.0334 DYNAMIC Gi1/1/4
255 0013.6015.e621 DYNAMIC Gi1/0/8
255 10f9.203b.87a8 DYNAMIC Gi1/0/3
255 549f.c68e.7dcb STATIC Vl255
255 acbc.d9c5.034b DYNAMIC Gi1/1/4
15 0050.569f.3e5a DYNAMIC Gi1/1/4
25 000c.2939.484c DYNAMIC Gi1/1/4
25 000c.29bf.ff96 DYNAMIC Gi1/0/4
25 04ec.d88f.28f7 DYNAMIC Gi1/0/9
25 10f9.203b.87ae DYNAMIC Gi1/0/4
25 26ea.5920.dbfb DYNAMIC Gi1/0/9
25 28cf.dab2.addd DYNAMIC Gi1/0/9
25 36d7.1fa2.2cdf DYNAMIC Gi1/0/9
25 683a.1e32.b5f8 DYNAMIC Gi1/0/9
25 a88f.d957.8066 DYNAMIC Gi1/0/9
25 dc0b.09f3.fe53 DYNAMIC Gi1/0/9
25 dc8b.285e.0e57 DYNAMIC Gi1/0/9
25 ec2e.988f.6553 DYNAMIC Gi1/0/9
14 000c.29eb.3ab8 DYNAMIC Gi1/0/4
14 549f.c68e.7dc6 STATIC Vl14
26 549f.c68e.7de5 STATIC Vl26
24 40a6.b7be.9c48 DYNAMIC Gi1/1/4
24 40a6.b7be.9d9c DYNAMIC Gi1/1/4
24 549f.c68e.7dc1 STATIC Vl24
66 40a6.b7be.9d9d DYNAMIC Gi1/1/4
66 549f.c68e.7dcb STATIC Vl66
Total Mac Addresses for this criterion: 78

Regards, LG
*** Please Rate All Helpful Responses ***

View solution in original post

2 Replies 2

liviu.gheorghe
Spotlight
Spotlight

Hello @zsombi30 ,

you can use the show mac address-table | exclude command:

SW_PROD#sho mac address-table
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All 0180.c200.0021 STATIC CPU
All ffff.ffff.ffff STATIC CPU
1 000c.299f.0eed DYNAMIC Gi1/0/24
1 40a6.b77b.1009 DYNAMIC Gi1/0/24
1 acbc.d9c5.0334 DYNAMIC Gi1/1/4
1 c829.c88a.d016 DYNAMIC Po1
1 c829.c88a.d017 DYNAMIC Po1
255 0013.6015.e621 DYNAMIC Gi1/0/8
255 10f9.203b.87a8 DYNAMIC Gi1/0/3
255 4891.d51a.ef74 DYNAMIC Gi1/0/18
255 549f.c68e.7dcb STATIC Vl255
255 acbc.d9c5.034b DYNAMIC Gi1/1/4
255 c829.c88a.d030 DYNAMIC Po1
255 e44e.2d55.1df0 DYNAMIC Gi1/0/20
15 000c.29b0.fa7a DYNAMIC Gi1/0/24
15 0050.569f.3e5a DYNAMIC Gi1/1/4
15 c829.c88a.d030 DYNAMIC Po1
25 000c.292a.8e3d DYNAMIC Gi1/0/24
25 000c.2939.484c DYNAMIC Gi1/1/4
25 000c.293a.9ee4 DYNAMIC Gi1/0/21
25 000c.2946.2212 DYNAMIC Gi1/0/24
25 000c.294a.9b73 DYNAMIC Gi1/0/24
25 000c.297a.5357 DYNAMIC Gi1/0/21
25 000c.29b3.c04b DYNAMIC Gi1/0/24
25 000c.29bf.ff96 DYNAMIC Gi1/0/4
25 000c.29c1.0273 DYNAMIC Gi1/0/21
25 000c.29da.eb80 DYNAMIC Gi1/0/24
25 000c.29f8.29d1 DYNAMIC Gi1/0/24
25 0011.3299.e99a DYNAMIC Gi1/0/14
25 0050.569f.332b DYNAMIC Gi1/0/24
25 0050.569f.e54a DYNAMIC Gi1/0/24
25 04ec.d88f.28f7 DYNAMIC Gi1/0/9
25 10f9.203b.87ae DYNAMIC Gi1/0/4
25 26ea.5920.dbfb DYNAMIC Gi1/0/9
25 2829.866a.d584 DYNAMIC Gi1/0/17
25 28cf.dab2.addd DYNAMIC Gi1/0/9
25 36d7.1fa2.2cdf DYNAMIC Gi1/0/9
25 40b5.c1c5.a080 DYNAMIC Gi1/0/12
25 5254.0001.72e7 DYNAMIC Gi1/0/21
25 5254.0018.a6f7 DYNAMIC Gi1/0/21
25 683a.1e32.b5f8 DYNAMIC Gi1/0/9
25 9c93.4ed3.1c0f DYNAMIC Gi1/0/15
25 a88f.d957.8066 DYNAMIC Gi1/0/9
25 c829.c88a.d030 DYNAMIC Po1
25 dc0b.09f3.fe53 DYNAMIC Gi1/0/9
25 dc8b.285e.0e57 DYNAMIC Gi1/0/9
25 e44e.2d55.1df6 DYNAMIC Gi1/0/21
25 ec2e.988f.6553 DYNAMIC Gi1/0/9
14 000c.29eb.3ab8 DYNAMIC Gi1/0/4
14 549f.c68e.7dc6 STATIC Vl14
14 c829.c88a.d030 DYNAMIC Po1
26 000c.294b.aca9 DYNAMIC Gi1/0/24
26 549f.c68e.7de5 STATIC Vl26
26 c829.c88a.d030 DYNAMIC Po1
24 40a6.b7be.9c48 DYNAMIC Gi1/1/4
24 40a6.b7be.9d9c DYNAMIC Gi1/1/4
24 549f.c68e.7dc1 STATIC Vl24
24 c829.c88a.d030 DYNAMIC Po1
66 40a6.b7be.9d9d DYNAMIC Gi1/1/4
66 549f.c68e.7dcb STATIC Vl66
Total Mac Addresses for this criterion: 79
SW_PROD#
SW_PROD#sho etherc
SW_PROD#sho etherchannel sum
Flags: D - down P - bundled in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3 S - Layer2
U - in use f - failed to allocate aggregator

M - not in use, minimum links not met
u - unsuitable for bundling
w - waiting to be aggregated
d - default port

A - formed by Auto LAG


Number of channel-groups in use: 1
Number of aggregators: 1

Group Port-channel Protocol Ports
------+-------------+-----------+-----------------------------------------------
1 Po1(SU) LACP Gi1/0/1(P) Gi1/0/2(P)

SW_PROD#show mac address-table | e Po1|Gi1/0/1|Gi1/0/2
Mac Address Table
-------------------------------------------

Vlan Mac Address Type Ports
---- ----------- -------- -----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All 0180.c200.0021 STATIC CPU
All ffff.ffff.ffff STATIC CPU
1 acbc.d9c5.0334 DYNAMIC Gi1/1/4
255 0013.6015.e621 DYNAMIC Gi1/0/8
255 10f9.203b.87a8 DYNAMIC Gi1/0/3
255 549f.c68e.7dcb STATIC Vl255
255 acbc.d9c5.034b DYNAMIC Gi1/1/4
15 0050.569f.3e5a DYNAMIC Gi1/1/4
25 000c.2939.484c DYNAMIC Gi1/1/4
25 000c.29bf.ff96 DYNAMIC Gi1/0/4
25 04ec.d88f.28f7 DYNAMIC Gi1/0/9
25 10f9.203b.87ae DYNAMIC Gi1/0/4
25 26ea.5920.dbfb DYNAMIC Gi1/0/9
25 28cf.dab2.addd DYNAMIC Gi1/0/9
25 36d7.1fa2.2cdf DYNAMIC Gi1/0/9
25 683a.1e32.b5f8 DYNAMIC Gi1/0/9
25 a88f.d957.8066 DYNAMIC Gi1/0/9
25 dc0b.09f3.fe53 DYNAMIC Gi1/0/9
25 dc8b.285e.0e57 DYNAMIC Gi1/0/9
25 ec2e.988f.6553 DYNAMIC Gi1/0/9
14 000c.29eb.3ab8 DYNAMIC Gi1/0/4
14 549f.c68e.7dc6 STATIC Vl14
26 549f.c68e.7de5 STATIC Vl26
24 40a6.b7be.9c48 DYNAMIC Gi1/1/4
24 40a6.b7be.9d9c DYNAMIC Gi1/1/4
24 549f.c68e.7dc1 STATIC Vl24
66 40a6.b7be.9d9d DYNAMIC Gi1/1/4
66 549f.c68e.7dcb STATIC Vl66
Total Mac Addresses for this criterion: 78

Regards, LG
*** Please Rate All Helpful Responses ***

Thanks a lot for your help!

I tried before sh mac address-table | exclude te1/0/1|3/01|po19 but that didn't work. It only works if i put Po19 first and then the interfaces.

 

 

 

Review Cisco Networking for a $25 gift card