R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
220
[Router] interface GigabitEthernet 4/0/2
[Router-GigabitEthernet4/0/2] port link-type trunk
[Router-GigabitEthernet4/0/2] voice vlan 2 enable
[Router-GigabitEthernet4/0/2] quit
2. Configure CDP-compatible LLDP on Router:
# Enable LLDP globally and enable LLDP to be compatible with CDP globally.
[Router] lldp enable
[Router] lldp compliance cdp
# Enable LLDP on GigabitEthernet 4/0/1 and GigabitEthernet 4/0/2. (You can skip this step
because LLDP is enabled on ports by default.) Configure LLDP to operate in TxRx mode, and
configure CDP-compatible LLDP to operate in TxRx mode on GigabitEthernet 4/0/1 and
GigabitEthernet 4/0/2.
[Router] interface GigabitEthernet 4/0/1
[Router-GigabitEthernet4/0/1] lldp enable
[Router-GigabitEthernet4/0/1] lldp admin-status txrx
[Router-GigabitEthernet4/0/1] lldp compliance admin-status cdp txrx
[Router-GigabitEthernet4/0/1] quit
[Router] interface GigabitEthernet 4/0/2
[Router-GigabitEthernet4/0/2] lldp enable
[Router-GigabitEthernet4/0/2] lldp admin-status txrx
[Router-GigabitEthernet4/0/2] lldp compliance admin-status cdp txrx
[Router-GigabitEthernet4/0/2] quit
3. Verify the configuration by displaying neighbor information on Router.
[Router] display lldp neighbor-information
CDP neighbor-information of port 1[GigabitEthernet4/0/1]:
CDP neighbor index : 1
Chassis ID : SEP00141CBCDBFE
Port ID : Port 1
Software version : P0030301MFG2
Platform : Cisco IP Phone 7960
Duplex : Full
CDP neighbor-information of port 2[GigabitEthernet4/0/2]:
CDP neighbor index : 2
Chassis ID : SEP00141CBCDBFF
Port ID : Port 1
Software version : P0030301MFG2
Platform : Cisco IP Phone 7960
Duplex : Full
As shown in the sample output, Router has discovered the IP phones connected to GigabitEthernet
4/0/1 and GigabitEthernet 4/0/2, and has obtained their LLDP information.