04-19-2024 03:37 AM
I'm using a 9200 device running IOS 17.9.
I use a script and spreadsheet to generate my config file, which I then copy onto my devices via TFTP and then copy to the running config. Nothing unusual there. However, if I then ask the device to show me the mac address-table, it's empty. Double, triple check the the config file contains the MAC table, it does. There are no errors or warnings reported by the device when applying the settings to the running config.
If I manually apply the mac table settings, by copy/pasting them from the generated config file into the console, everything works OK. Ask the device to show me the mac address-table, there are my entries.
Below is an example of the mac address-table config from the generated file. Again, copy/paste this into the console and it's fine. Any ideas why I can't load a mac address-table from a file? Needing the copy/paste step is a pain.
mac address-table static 0300.0000.3714 vlan 101 interface g1/0/41 g2/0/24 g1/0/45
mac address-table static 0300.0000.3715 vlan 101 interface g1/0/41 g2/0/24 g1/0/45
mac address-table static 0300.0000.3716 vlan 101 interface g1/0/41 g2/0/24 g1/0/45
04-19-2024 04:12 AM
Hello,
not sure how exactly you generate these scripts, but make sure that there is a LF (line feed) at the end of each of these lines (LF is typically created by pressing <<ENTER>> at the end of the line...
04-19-2024 05:20 AM
04-19-2024 05:51 AM
Glad you got it figured out...
04-19-2024 04:29 AM
Do show mac address table
Match what you see in text file you use.
As I see you use multi interface in one line'
That not same as mac table use
It add mac to vlan to single interface
MHM
04-22-2024 01:16 AM
I case anyone is reading this in the future and wondering what on earth I was doing and why, my switches are not being used in a 'traditional' networking environment. I'm using them to route aircraft AFDX data. If you want to know more about AFDX and its rules there is plenty on Google, but in reply to MHM's comment; I use multicast MAC routing (routing on the destination MAC of each packet). Multicast MACs have their 8th bit set to 1 - the 0300 in my MACs above. So defining multiple interfaces on a single line is valid. If there is a better way of doing this then I'm open to suggestion, but as this is AFDX traffic, it must be layer 2 routing.
04-22-2024 02:22 AM
mac address-table static 0300.0000.3714 vlan 101 interface gigabitethernet 1/0/41 gigabitethernet 1/0/45
Do in this way'
Sometimes the SW not accept the copy paste command becuase missing exact name and/or there is no space between command
MHM
04-22-2024 02:39 AM
Interesting nuance. Thanks MHM.
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