# LLDP on MaestroOrchestrator

This section applies only to external interfaces (Management ports and Uplink ports) on the MaestroOrchestrator.

|     |     |
| --- | --- |
|  | Important - Scalable Platform Security Groups do **not** support this feature<br>(Known Limitation MBS-10753 for ElasticXL and MaestroSecurity Groups). |

You can configure Gaia to advertise and receive information from other network devices over the Link Layer Discovery Protocol (LLDP) protocol.

The LLDP is a vendor-neutral link layer protocol that network devices use to advertise their identity, capabilities (and so on) and to receive information about their neighbors on a local area network based on IEEE 802 standard.

The gathered information may include:

- System Name

- System Description

- System Capabilities (switching, routing, etc.)

- Port Description

- Management Address

|     |     |
| --- | --- |
|  | Important - By default, LLDP is **disabled** in the Gaia operating system. |

|     |     |
| --- | --- |
|  | Notes - In a Maestro environment:<br>- The Security Appliances send LLDP packets to the Orchestrator.<br>  <br>  Based on these LLDP packets, the Orchestrator maintains the internal database of the Security Appliances and the Orchestrator ports, to which they are connected.<br>  <br>- After you assign Security Appliances to a Security Group, the Orchestrator sends the LLDP packets to the assigned Security Appliances.<br>  <br>  These LLDP packets contain the required Security Group ID and the Security Group Member ID.<br>  <br>- If you change the state of the LLDPD daemon to "`off`" on the Orchestrator, it stops the LLDPD daemon from transmitting and processing LLDP PDUs on the Orchestrator's external interfaces (Management ports and Uplink ports).<br>  <br>  However, the LLDPD daemon continues to transmit and process LLDP PDUs on the Orchestrator's Downlink ports. It is not supported to disable LLDP PDUs on the Orchestrator's Downlink ports.<br>  <br>- The external ports appear in the Gaia OS on the Orchestrator with these names:<br>  - `eth<X>-Mgmt<X>`<br>    <br>    Management ports<br>    <br>  - `eth<X>-<XX>`<br>    <br>    Uplink ports<br>    <br>  - `eth<X>-Sync-<X>-<YZ>`<br>    <br>    Ports for the internal synchronization and the external synchronization<br>- The port for the external synchronization between Maestro Sites ("`site_sync`") on each Orchestrator appears in the Gaia OS with this interface name:<br>  <br>  `eth<Orchestrator_Member_ID>-Sync-E-<Port_Logical_ID>`<br>  <br>  Example: `eth1-Sync-E-121`<br>  <br>- The port for the internal synchronization on the same Maestro Site ("`ssm_sync`") on each Orchestrator appears in the Gaia OS with this interface name:<br>  <br>  `eth<Orchestrator_Member_ID>-Sync-I-<Port_Logical_ID>`<br>  <br>  Example: `eth1-Sync-I-125` |

## Configuring LLDP in Gaia Portal on an Orchestrator

| Step | Instructions |
| --- | --- |
| 1 | In the navigation tree, click System Management > LLDP. |
| 2 | In the Type Length Value (TLV) section, select which information to send in the LLDP packets, and click Apply:<br>- System Name<br>  <br>  To send the Gaia "`<Hostname>.<Domainname>`".<br>  <br>  Note - To configure the domain name, see [System Name](https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_Gaia_AdminGuide/Content/Topics-GAG/Hosts-and-DNS-System-Name.htm).<br>  <br>- System Description<br>  <br>  To send the formatted output of the "`uname -msr`" command<br>  <br>  (which contains the kernel name, kernel release, and kernel machine hardware name).<br>  <br>- System Capabilities<br>  <br>  To send the string "`station`" (regardless of the Check Point configuration).<br>  <br>- Port Description<br>  <br>  To send the name of the interface.<br>  <br>- Management Address<br>  - Select **Send Management interface IP** to send the IP address of the Gaia Management interface only.<br>    <br>  - Select **Send Configured interface IP** to send the IP address of each selected interface. |
| 3 | In the Timers section, it is not supported to change the default values:

- Transmit Interval

This interval controls how frequently Gaia To send LLDP packets on the selected interfaces.

Default: 8 seconds.

- Hold Time Multiplier

This multiplier controls the Time-to Live (TTL) of the LLDP packets:

TTL = (Transmit Interval) x (Hold Time Multiplier).

This TTL is the duration, for which the receiving neighbor stores the LLDP information in its database.

Default: 3.

|     |     |
| --- | --- |
|  | Note - These values are global and apply to all selected interfaces. | |
| 4 | In the Interfaces section, add the applicable interfaces.<br>By default, Gaia OS selects the ports for the internal synchronization and the internal synchronization.<br>- To add all interfaces:<br>  1. Click Add All.<br>     <br>  2. Click Yes to confirm.<br>     <br>  3. The default LLDP mode for all interfaces is Transmit and Receive.<br>     <br>     To change the LLDP mode:<br>     1. Select an interface.<br>        <br>     2. Click Edit.<br>        <br>     3. Select the applicable LLDP mode.<br>        <br>     4. Click Save.<br>- To add a specific interface:<br>  1. Click Add.<br>     <br>  2. In the Interface Name field, select an interface.<br>     <br>  3. In the Mode field, select the applicable LLDP mode.<br>     <br>  4. Click Save.<br>The available LLDP modes are:<br>- Transmit and Receive<br>  <br>  The interface transmits and receives the LLDP packets.<br>  <br>- Transmit only<br>  <br>  The interface only transmits the LLDP packets, but does not receive the LLDP packets.<br>  <br>- Receive only<br>  <br>  The interface only receives the LLDP packets, but does not transmit the LLDP packets. |
| 5 | In the LLDP Configuration section:<br>1. Select Enable LLDP on external interfaces.<br>   <br>2. Click Apply. |

## Configuring LLDP in Gaia Clish on an Orchestrator

By default, Gaia OS selects the ports for the internal synchronization and the internal synchronization.

Workflow:

| Step | Instructions |
| --- | --- |
| 1 | Enable the LLDP on the external ports:

|     |
| --- |
| `set lldp state on` | |
| 2 | Configure the required LLDP settings with the "`set lldp`" command. |
| 3 | Save the changes in the Gaia database:

|     |
| --- |
| `save config` | |

Syntax

- To configure LLDP on Orchestrator:

|     |
| --- |
| `set lldp`<br>`      hold-time-multiplier <2-10>`<br>`      interface <Name of Interface>`<br>`            receive {on | off}`<br>`            transmit {on | off}`<br>`            transmit-and-receive {on | off}`<br>`      state {on | off}`<br>`      tlv`<br>`            port-description {on | off}`<br>`            system-name {on | off}`<br>`            system-description {on | off}`<br>`            system-capabilities {on | off}`<br>`            management-address {on from {configured-interface | mgmt-interface} | off}`<br>`      transmit-interval <8-32768>` |

|     |     |
| --- | --- |
|  | Important - After you add, configure, or delete features, run the "`save config`" command to save the settings permanently. Scalable Platforms save the changes automatically. |

- To show the LLDP configuration on Orchestrator:

|     |
| --- |
| `show lldp`<br>`      peers`<br>`      status`<br>`            interface <Name of Interface>`<br>`            timers`<br>`            tlv` |

Parameters

| Parameter | Description |
| --- | --- |
| `hold-time-multiplier` | This multiplier controls the Time-to Live (TTL) of the LLDP packets:

TTL = (Transmit Interval) x (Hold Time Multiplier).

This TTL is the duration, for which the receiving neighbor stores the LLDP information in its database.

Default: 3.

|     |     |
| --- | --- |
|  | Note - It is not supported to change the default value. | |
| `interface <Name of Interface>` | Specifies the name of an interface, which sends or receives the LLDP packets. |
| `interface <Name of Interface> receive {on | off}` | Enables (`on`) and disables (`off`) the LLDP mode on the interface as "receive only".<br>The interface only receives the LLDP packets, but does not transmit the LLDP packets. |
| `interface <Name of Interface> transmit {on | off}` | Enables (`on`) and disables (`off`) the LLDP mode on the interface as "transmit only".<br>The interface only transmits the LLDP packets, but does not receive the LLDP packets. |
| `interface <Name of Interface> transmit-and-receive {on | off}` | Enables (`on`) and disables (`off`) the LLDP mode on the interface as "transmit and receive".<br>The interface transmits and receives the LLDP packets. |
| `state {on | off}` | Enables (`on`) and disables (`off`) the LLDP on the specified interface. |
| `tlv<br>port-description {on | off}` | Enables (`on`) and disables (`off`) the LLDP-enabled interface to send the Port Description information in the LLDP packets.<br>Sends the name of the interface. |
| `tlv<br>system-name {on | off}` | Enables (`on`) and disables (`off`) the LLDP-enabled interface to send the System Name information in the LLDP packets.<br>Sends the Gaia "`<Hostname>.<Domainname>`".<br>Note - To configure the domain name, see [System Name](https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_Gaia_AdminGuide/Content/Topics-GAG/Hosts-and-DNS-System-Name.htm). |
| `tlv<br>system-description {on | off}` | Enables (`on`) and disables (`off`) the LLDP-enabled interface to send the System Description information in the LLDP packets.<br>Sends the formatted output of the "`uname -msr`" command<br>(which contains kernel name, kernel release, and kernel machine hardware name). |
| `tlv<br>system-capabilities {on | off}` | Enables (`on`) and disables (`off`) the LLDP-enabled interface to send the System Capabilities information in the LLDP packets.<br>Sends the string "`station`" (regardless of the Check Point configuration). |
| `tlv<br>management-address {on | off}` | Enables (`on`) and disables (`off`) the LLDP-enabled interface to send the Management Address information in the LLDP packets.<br>- `from mgmt-interface` - Sends the IP address of the Gaia Management interface only.<br>  <br>- `from configured-interface` - Sends the IP address of each LLDP-enabled interface. |
| `transmit-interval <8-32768>` | This interval controls how frequently the LLDP-enabled interface sends the LLDP packets.

Default: 8 seconds.

|     |     |
| --- | --- |
|  | Note - It is not supported to change the default value. | |
| `timers` | Shows the configured LLDP timers:<br>- Hold Time Multiplier<br>  <br>- Transmit Interval |

Example - Viewing the LLDP status

|     |
| --- |
| ```<br>MHO_1_1> show lldp status<br>LLDP is enabled on external interfaces<br>Interfaces<br>Mgmt1 - transmit and receive<br>eth1-05 - transmit and receive<br>eth1-09 - transmit and receive<br>eth1-17 - transmit and receive<br>eth1-21 - transmit and receive<br>eth1-25 - transmit and receive<br>eth1-29 - transmit and receive<br>eth1-33 - transmit and receive<br>eth1-37 - transmit and receive<br>eth1-41 - transmit and receive<br>eth1-45 - transmit and receive<br>eth1-49 - transmit and receive<br>eth1-53 - transmit and receive<br>eth1-57 - transmit and receive<br>eth1-61 - transmit and receive<br>eth1-Mgmt1 - transmit and receive<br>eth1-Sync-E-121 - transmit and receive<br>eth1-Sync-I-125 - transmit and receive<br>Optional Information<br>port-description off<br>system-name on<br>system-description off<br>system-capabilities off<br>management-address on from configured-interface<br>Timers<br>Hold time multiplier 3<br>Transmit interval 8<br>MHO_1_1><br>``` |

Example - Viewing the LLDP peers

|     |
| --- |
| ```<br>MHO_1_1> show lldp peers<br>-------------------------------------------------------------------------------<br>LLDP neighbors:<br>-------------------------------------------------------------------------------<br>Interface:    Mgmt1, via: LLDP, RID: 138, Time: 0 day, 00:12:31<br>  Chassis:<br>    ChassisID:    mac XX:XX:XX:XX:XX:XX<br>    SysName:      MyCiscoSwitch<br>    SysDescr:     Cisco Nexus Operating System (NX-OS)<br>                  TAC support: http://www.cisco.com/tac<br>                  Copyright (c) 2002-2019, Cisco Systems, Inc. All rights reserved.<br>    MgmtIP:       172.16.2.182<br>    Capability:   Bridge, on<br>    Capability:   Router, on<br>  Port:<br>    PortID:       ifname Ethernet1/31<br>    PortDescr:    MHO-1<br>    TTL:          120<br>  VLAN:         25, pvid: yes<br>  Unknown TLVs:<br>    TLV:          OUI: 00,01,42, SubType: 1, Len: 1 01<br>-------------------------------------------------------------------------------<br>Interface:    eth1-Sync-I-125, via: LLDP, RID: 131, Time: 1 day, 06:53:27<br>  Chassis:<br>    ChassisID:    local MT2006X14198<br>    SysName:      MHO_1_2<br>    MgmtIP:       172.16.25.102<br>  Port:<br>    PortID:       mac 00:02:03:04:05:c4<br>    PortDescr:    eth2-Sync-I-125<br>    TTL:          24<br>-------------------------------------------------------------------------------<br>Interface:    eth1-Sync-E-121, via: LLDP, RID: 137, Time: 1 day, 06:09:43<br>  Chassis:<br>    ChassisID:    local MT2006X14199<br>    SysName:      MHO_2_1<br>    MgmtIP:       172.16.25.103<br>  Port:<br>    PortID:       mac 00:02:03:04:05:c0<br>    PortDescr:    eth1-Sync-E-121<br>    TTL:          24<br>-------------------------------------------------------------------------------<br>Interface:    eth1-Mgmt1, via: LLDP, RID: 140, Time: 0 day, 00:12:19<br>  Chassis:<br>    ChassisID:    mac XX:XX:XX:XX:XX:XX<br>  Port:<br>    PortID:       ifname hundredGigE 1/15<br>    TTL:          120<br>(truncated)<br>-------------------------------------------------------------------------------<br>MHO_1_1><br>``` |

## Configuring LLDP in the Expert mode on an Orchestrator

You can configure advanced LLDP settings in the Expert mode.

To control the automatic LLDP configuration "transmit-and-receive on" on any new port with the type "ssm_sync" (internal sync) and "site_sync" (external sync):

By default, this feature is enabled.

| Step | Instructions |
| --- | --- |
| 1 | Connect to the command line on the Orchestrator. |
| 2 | Log in. |
| 3 | If your default shell is Gaia Clish, then go to the Expert mode:

|     |
| --- |
| `expert` | |
| 4 | Add the required configuration in the Gaia database:

- To enable this feature (this is the default), run:

|     |
| --- |
| `dbset maestro:lldp:set_lldp_rx_and_tx_to_on_upon_sync_interface_creation true` |

- To disable this feature, run:

|     |
| --- |
| `dbset maestro:lldp:set_lldp_rx_and_tx_to_on_upon_sync_interface_creation` | |
| 5 | Save the changes in the Gaia database:

|     |
| --- |
| `dbset :save` | |

To control the automatic LLDP configuration "transmit-and-receive on" of any new port:

By default, this feature is disabled.

|     |
| --- |
| `expert` | |
| 4 | Add the required configuration in the Gaia database:

- To enable this feature, run:

|     |
| --- |
| `dbset maestro:lldp:set_lldp_rx_and_tx_to_on_upon_interface_creation true` |

- To disable this feature (this is the default), run:

|     |
| --- |
| `dbset maestro:lldp:set_lldp_rx_and_tx_to_on_upon_interface_creation` | |
| 5 | Save the changes in the Gaia database:

|     |
| --- |
| `dbset :save` | |
