10-29-2007 03:21 PM - edited 03-03-2019 05:32 AM
What command is used to display the mac addresses of all interfaces on a switch?
Thanks,
SK
10-29-2007 03:25 PM
show mac-address-table
10-29-2007 03:27 PM
Try
SHOW MODULE X
Where X is the module # you want to get MAC addresses of.
I.e., SHOW MODULE 2
Mod Slot Ports Module-Type Model Sub Status
--- ---- ----- ------------------------- ------------------- --- --------
2 2 48 10/100/1000BaseT Ethernet WS-X6148-GE-TX yes ok
Mod Module-Name Serial-Num
--- -------------------- -----------
2 XXXXXXXXXX
Mod MAC-Address(es) Hw Fw Sw
--- -------------------------------------- ------ ---------- -----------------
2 00-0e-d7-9f-9c-b8 to 00-0e-d7-9f-9c-e7 5.0 7.2(1) 8.5(8)
Mod Sub-Type Sub-Model Sub-Serial Sub-Hw Sub-Sw
--- ----------------------- ------------------- ----------- ------ ------
2 Inline Power Module WS-F6K-VPWR-GE SAD07XXXXX 1.0 1.1(1)
10-29-2007 03:39 PM
I have to mention that this is a Cat3560 switch that I am trying to use this commnad on. There is no "module" option on these types of switches.
The show mac-address command doens't work. I am trying to list all the mac address of all the interfaces residing on the switch and not the mac addresses learned and added to the CAM.
Thanks,
sK
10-29-2007 03:44 PM
Oh, ok SK
Try
show int fa0/1 | include address
Hardware is Fast Ethernet, address is 001b.5417.fa83 (bia 001b.5417.fa83)
If you do this for the fa0/1 interface, then the fa0/24 interface you'll have a linear MAC address range. The same holds true for Gig ports.
The bummer is that IOS doesn't have many interface range capable commands like the CatOS module command I referenced earlier.
10-29-2007 03:56 PM
Yes, it is a real bummer that I will have to use the show command on each int individually..
Thanks,
sK
10-29-2007 05:05 PM
If you just do a "show interface " that lists all the interfaces with the mac address , yes it is a lot to look thru but you don't have to do each one indivudually.
10-30-2007 12:55 AM
Hi
SW1#sh int | include Hardware
Hardware is EtherSVI, address is 0019.060d.1c40 (bia 0019.060d.1c40)
Hardware is Fast Ethernet, address is 0019.060d.1c03 (bia 0019.060d.1c03)
Hardware is Fast Ethernet, address is 0019.060d.1c04 (bia 0019.060d.1c04)
Hardware is Fast Ethernet, address is 0019.060d.1c05 (bia 0019.060d.1c05)
Hardware is Fast Ethernet, address is 0019.060d.1c06 (bia 0019.060d.1c06)
Hardware is Fast Ethernet, address is 0019.060d.1c07 (bia 0019.060d.1c07)
Hardware is Fast Ethernet, address is 0019.060d.1c08 (bia 0019.060d.1c08)
Hardware is Fast Ethernet, address is 0019.060d.1c09 (bia 0019.060d.1c09)
Hardware is Fast Ethernet, address is 0019.060d.1c0a (bia 0019.060d.1c0a)
Hardware is Fast Ethernet, address is 0019.060d.1c0b (bia 0019.060d.1c0b)
Hardware is Fast Ethernet, address is 0019.060d.1c0c (bia 0019.060d.1c0c)
Hardware is Fast Ethernet, address is 0019.060d.1c0d (bia 0019.060d.1c0d)
Hardware is Fast Ethernet, address is 0019.060d.1c0e (bia 0019.060d.1c0e)
Hardware is Fast Ethernet, address is 0019.060d.1c0f (bia 0019.060d.1c0f)
Hardware is Fast Ethernet, address is 0019.060d.1c10 (bia 0019.060d.1c10)
Hardware is Fast Ethernet, address is 0019.060d.1c11 (bia 0019.060d.1c11)
Hardware is Fast Ethernet, address is 0019.060d.1c12 (bia 0019.060d.1c12)
Hardware is Fast Ethernet, address is 0019.060d.1c13 (bia 0019.060d.1c13)
Hardware is Fast Ethernet, address is 0019.060d.1c14 (bia 0019.060d.1c14)
Hardware is Fast Ethernet, address is 0019.060d.1c15 (bia 0019.060d.1c15)
Hardware is Fast Ethernet, address is 0019.060d.1c16 (bia 0019.060d.1c16)
Hardware is Fast Ethernet, address is 0019.060d.1c17 (bia 0019.060d.1c17)
Hardware is Fast Ethernet, address is 0019.060d.1c18 (bia 0019.060d.1c18)
Hardware is Fast Ethernet, address is 0019.060d.1c19 (bia 0019.060d.1c19)
Hardware is Fast Ethernet, address is 0019.060d.1c1a (bia 0019.060d.1c1a)
Hardware is Gigabit Ethernet, address is 0019.060d.1c01 (bia 0019.060d.1c01)
Hardware is Gigabit Ethernet, address is 0019.060d.1c02 (bia 0019.060d.1c02)
SW1#
And then cross reference to "sh ip int br"
HTH
Jon
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide