The central element of an IXP is the switches. IXP Manager provides comprehensive management features for switches (and more complex configurations such as VXLAN overlay networks).
We strongly advise trying to add and manage switches in IXP Manager without SNMP. SNMP v2 is a core element of how switches work within IXP Manager including accurate port discovery, graphing, port states, optic availability, etc.
You access the switch management functionality in IXP Manager via the Switches menu option under IXP Admin Actions in the left hand side control menu. The default action is to list the configured switches:
From the above screenshot, you will notice a number of features:
- There is a toggle button Show Active Only which will toggle the list views to show all switches (default) or only active switches.
- The default switch information view is shown. There are two additional list views under the top right List Mode: dropdown:
- OS View: shows information (where available via SNMP) about the switch software, its version, the serial number, etc. This view is useful for planning software upgrades.
- L3 View: when running your exchange using an overlay network such as VXLAN, this view shows the layer 3 details of your switches including AS number, loopback address, etc.
- The Help button on the top right links to this documentation.
- The plus icon on the top right is used to add new switches.
In the list view above, you will also notice that there are per row / per switch options on the right:
- The eye (view) button shows the complete database record for a switch including all the SNMP discovered information from the Iface and MAU SNMP MIBs.
- The pencil button allows you to edit a switch's details.
- The trashcan button allows you to delete a switch. NB: a switch can only be deleted if there are no associated ports, patch panel connections, etc. Switches can alternatively be made inactive by editing it and unchecking the Active checkbox.
- Under SNMP Actions there are two options and the resulting view is made from a live/immediate SNMP poll:
- View / Edit Ports: Allows you to edit port type, port active status, etc. Please see documentation below for details.
- Live Port States: Shows the current port states including: name, alias/description, LAG, speed / duplex, MTU, administrative and operational state.
- Under Database Actions you can get information on the switches ports as recorded in the database (usually from the last time the switch was polled):
- View / Edit Ports: Allows you to edit port type, port active status, etc. Please see documentation below for details. Where SNMP is available, the above SNMP version of this has more features and is preferred.
- Port MAU Detail: MAU (Medium Attachment Units) - provides information on the XFP / SFP / etc. optics installed in a switch. If the option is disabled then it means the switch does not support the SNMP MAU MIB.
- Port Report: a simple report listing who is connected to each port in a switch. E.g. useful as a hardcopy when going to a datacentre.
Adding and Editing Switches
From the list view described above, click the plus button in the top right to add a switch. Switches are added by SNMP poll so the first step is to provide a hostname and SNMP v2 community:
The switch must respond to SNMP queries from the server on which IXP Manager is installed. This can be testing on the command line as follows:
root@ixpmanager:~# snmpget -c yourcommunity -v 2c switch01.mgmt.example.com .18.104.22.168.22.214.171.124.0 iso.126.96.36.199.188.8.131.52 = STRING: "Arista Networks EOS version 4.18.0F running on an Arista Networks DCS-7280SR-48C6"
After completing the details and clicking Next >>, IXP Manager will poll the switch and present you with the second (and last) stage in adding a switch:
The important things to note about this are:
- Clicking the green Help button will show individual help / instructions for each field.
- The hostname and SNMP community are read only here as they were entered in the previous step and the additional details pre-filled were discovered by a SNMP poll.
- The name of the switch is how you want it shown in various sections of IXP Manager. We recommend using the hostname of the fully-qualified-domain-name of the switch. Regardless of what you use, please do not use periods, spaces or non-alphanumeric characters besides dashes and underscores.
- The vendor and model are prefilled where IXP Manager could successfully identify them based on platform discovery - see below. If the vendor does not exist in the dropdown, it can be added via the Vendors option in the left-hand menu.
- The elements under Management Configuration are not used directly by IXP Manager but can be used for orchestration and automated provisioning (as it used by INEX - see here).
- The elements under Layer 3 Configuration are not used directly by IXP Manager but can be used for orchestration and automated provisioning of overlay networks such as VXLAN (as it used by INEX - see here).
The discovery of a switches vendor, model, operating system details and serial number - as well as MAU details - is achieved via a third party package called OSS_SNMP. While this shares an author in common with IXP Manager, it is a separate project.
Managing Switch Ports
Recall the per row / per switch options on the right hand side of each switch's row when listing switches:
These options allow you to list and manage switch ports. Of these, the most relevant is the View / Edit Ports under SNMP Actions which leads to a page as follows:
The page allows you to:
- Change the port type dynamically via AJAX on a per port basis (the column of Unset / Unknown dropdowns).
- Select a group of ports (and optionally invert the selection via the square refresh icon) or select all ports. Then, with the selected ports:
- delete them
- change their type
- set them as active / inactive
Note that deleting ports is not a permanent action if the port physically exists and is discovered in a subsequent SNMP poll.
Switch Port Types
While some of these are clear from the name, we will explain each type here for completeness:
- Unset / Unknown: no type has been set. A port is automatically set to Peering or Core when it is assigned to a customer / core bundle.
- Peering: peering port assigned to a customer. Automatically set when the port is assigned to a customer.
- Monitor: a port used for monitoring / mirroring traffic from another port. These ports are used by INEX when provisioning a new customer during what we call our quarantine process. This allows us to ensure the customer end is configured correctly without discovery protocols (CDP, LLDP, etc.), keepalives, no unexpected tagged packets, etc.
- Core: a core / inter-switch link port. This is automatically set when a port is added to a core bundle.
- Other: a purpose other than what we have provided options for.
- Management: management access to a switch.
- Fanout and Reseller: used for reseller functionality.
Automated Polling / SNMP Updates
Switch and switch port information in the database can go stale very quickly. As such, IXP Manager will poll switches using SNMP hourly via the task scheduler. You can do it manually via the Artisan command:
The command signature is:
switch:snmp-poll [--log] [--noflush] [-q, --quiet] [<switch>]
[-q, --quiet]does not output anything unless there is an error. Should be used for cron jobs.
[--log]outputs detailed SNMP polling information to
/srv/ixpmanager/storage/logs/laravel.log. You can tail this file when running it to help diagnose any issues.
[--noflush]polls the switch but does not write anything to the database.
[<switch>]allows you to optionally limit the polling to a single named switch (the switch's name, not hostname). If not specified, all switches are polled.
Not that inactive switches are not polled unless an inactive switch name is explicitly specified.
Migrating Customers to a New Switch
When moving IXP customers from one switch to another, add the new switch into the IXP Manager as described above. The customer port assignments can easily be changed to the new switch using the IXP Manager web interface. It is advisable not to delete the old port assignment and create a new one, because if this happens, then the old customer port graphs will not be preserved.
The process is, for each customer:
- find the customer's overview page on IXP Manager (chose customer from top right dropdown)
- find and edit the relevant port under the Ports
- edit the physical interface of each port being moved
- chose the new switch and switch port
- save the changes
When the switch port updates have been completed, it's advisable to rebuild the mrtg configuration using the CLI tool and (if using dynamically discovered MAC addresses) also to update the layer 2 database, otherwise some MRTG and sflow stats may be lost.
A new feature (adding in v4.9.0) allows IXP Manager administrators to audit port speeds as configured in physical interfaces against what has been discovered in the last SNMP run.
You can run it from Artisan such as the following example:
./artisan audit:port-speeds Audit of Configured Physical Interface Port Speeds Against SNMP Discovered Speeds +------------------------------+----------+----------------+-----------------------+----------+------------+ | Customer | PI DB ID | Switch | Switchport | PI Speed | SNMP Speed | +------------------------------+----------+----------------+-----------------------+----------+------------+ | INEX Route Servers [AS43760] | 14 | swi2-tcy1-2 | GigabitEthernet27 | 0 | 1000 | | INEX [AS2128] | 15 | swi1-ix1-2 | X460-48t Port 47 | 0 | 1000 | | INEX [AS2128] | 16 | swi2-ix1-1 | GigabitEthernet25 | 0 | 1000 | | AS112 Reverse DNS [AS112] | 21 | swi2-nwb1-1 | X670G2-48x-4q Port 15 | 0 | 1000 | | INEX [AS2128] | 357 | swic-cix-2 | GigabitEthernet27 | 100 | 1000 | | AS112 Reverse DNS [AS112] | 590 | swt-cwt1-edge1 | swp3 | 10000 | 1000 | +------------------------------+----------+----------------+-----------------------+----------+------------+
The above examples are edge cases as they are not physically connected devices but rather virtual machines. This audit can be added to cron such that it will only make noise if an issue is found with something like:
13 9 * * * www-data /srv/ixpmanager/artisan audit:port-speeds \ --cron --ignore-pids 14,15,16,21,357,590