LLDP JUNOS

From Teknologisk videncenter
Jump to: navigation, search

Juniper understøtter selvfølgelig IEEE 802.1AB stardarden LLDP - Link Layer Discovery Protocol
Af sikkerhedsgrunde er den slået fra pr. default men aktiveres på alle eller enkelte porte under protocols lldp stanzaen.

konfiguration

Her aktiveres LLDP på 2 porte.

root@SRX240> <input>show configuration protocols lldp | display set</input>
set protocols lldp interface ge-0/0/4.0
set protocols lldp interface ge-0/0/7.0

Verificering

Vil man se LLDP naboer bruges show lldp neighbors. her er port ge-0/0/4 forbundet til ge-0/0/7 på den samme kasse

root@SRX240> <input>show lldp neighbors</input>
Local Interface    Parent Interface    Chassis Id          Port info          System Name
ge-0/0/7.0         -                   00:24:dc:d8:17:00   ge-0/0/4.0         SRX240
ge-0/0/4.0         -                   00:24:dc:d8:17:00   ge-0/0/7.0         SRX240

Lidt mere info

root@SRX240> <input>show lldp neighbors interface ge-0/0/7.0</input>
LLDP Neighbor Information:
Local Information:
Index: 1 Time to live: 120 Time mark: Fri Jan  9 10:16:54 2015 Age: 17 secs
Local Interface    : ge-0/0/7.0
Parent Interface   : -
Local Port ID      : 568
Ageout Count       : 0

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:24:dc:d8:17:00
Port type          : Locally assigned
Port ID            : 565
Port description   : ge-0/0/4.0
System name        : SRX240

System Description : Juniper Networks, Inc. srx240b , version 12.1X44-D40.2 Build date: 2014-08-28 13:51:51 UTC

System capabilities
        Supported  : Bridge Router
        Enabled    : Bridge Router

Organization Info
       OUI      : 0.12.f
       Subtype  : 1
       Index    : 1
       Info     : 00120F0103

Organization Info
       OUI      : 0.12.f
       Subtype  : 3
       Index    : 2
       Info     : 00120F0301
<notice><-- output omitted --></notice>

Management IP adresser

Hvis udstyret skal udsende en management adresse skal det konfigureres[1].

[edit]
root@SRX240# <input>set protocols lldp management-address 1.1.1.1</input>

[edit]
root@SRX240# <input>commit and-quit</input>
commit complete
Exiting configuration mode

root@SRX240> <input>show lldp neighbors interface ge-0/0/7.0</input>
LLDP Neighbor Information:
Local Information:
Index: 1 Time to live: 120 Time mark: Fri Jan  9 10:20:16 2015 Age: 25 secs
Local Interface    : ge-0/0/7.0
Parent Interface   : -
Local Port ID      : 568
Ageout Count       : 0

Neighbour Information:
Chassis type       : Mac address
Chassis ID         : 00:24:dc:d8:17:00
Port type          : Locally assigned
Port ID            : 565
Port description   : ge-0/0/4.0
System name        : SRX240

System Description : Juniper Networks, Inc. srx240b , version 12.1X44-D40.2 Build date: 2014-08-28 13:51:51 UTC

System capabilities
        Supported  : Bridge Router
        Enabled    : Bridge Router

Management Info
        Type              : IPv4
        Address           : <notice>1.1.1.1</notice>
        Port ID           : 0
        Subtype           : 1
        Interface Subtype : Unknown(1)
        OID               : 1.3.6.1.2.1.31.1.1.1.1.0

Organization Info
       OUI      : 0.12.f
       Subtype  : 1
       Index    : 1
       Info     : 00120F0103
<notice><-- output omitted --></notice>

Referencer