Configuration Guide - Interoperating With Cisco Systems v1.00
Configuration Guide - Interoperating With Cisco Systems v1.00
Scope
This guide is a one-stop resource to help users to setup their network quickly and optimize the
features of D-Link and vendors’ equipments smoothly. This guide focuses on the configuration of
D-Link and Cisco switches and includes topology examples for setting up a multi-vendor
environment.
Use this document to learn, use and configure the different features of D-Link and Cisco
management switches.
Audience
This document is written for system administrators, network managers and IT personnel who are
responsible for the deployment of management switches.
Title Description
Terminology Detailed descriptions of functions that are used to explain similar concepts on
both D-Link & Cisco platforms.
Topology Topology examples when working in interoperability mode.
Configuration Step-by-step instructions on how to configure and setup the devices.
Troubleshooting Command examples on how to quickly troubleshoot and configure if
Examples interoperation fails.
1
Interoperating with Cisco Systems
Table Of Contents
VLAN Configuration ...................................................................................................... 3
Terminology ........................................................................................................... 3
Topology ............................................................................................................... 3
Configuration ......................................................................................................... 3
Troubleshooting Examples........................................................................................ 5
Link Aggregation ........................................................................................................ 10
Terminology ......................................................................................................... 10
Compatibility between D-Link Port-trunking and Cisco Port-Channel ............................. 10
Topology ............................................................................................................. 11
Configuration ....................................................................................................... 11
Troubleshooting Examples...................................................................................... 11
Spanning Tree Configuration ........................................................................................ 17
Terminology ......................................................................................................... 17
Topology ............................................................................................................. 17
Configuration ....................................................................................................... 17
Troubleshooting Examples...................................................................................... 18
Multiple Spanning Tree Configuration ............................................................................ 21
Terminology ......................................................................................................... 21
Compatibility between MSTP and PVST .................................................................... 21
Topology ............................................................................................................. 21
Configuration ....................................................................................................... 21
Troubleshooting Examples...................................................................................... 23
Open Shortest Path Fast (OSPF) Configuration................................................................ 27
Terminology ......................................................................................................... 27
Topology – Single OSPF Area .................................................................................. 27
Configuration ....................................................................................................... 27
Troubleshooting Examples...................................................................................... 29
Topology – Multiple OSPF Areas .............................................................................. 33
Configuration ....................................................................................................... 34
Troubleshooting Examples...................................................................................... 36
2
Interoperating with Cisco Systems
VLAN Configuration
This chapter deals with port-based VLANs that Cisco and D-Link switches support.
Terminology
Topology
Configuration
VLAN Configuration on a Cisco Switch
The following section lists step-by-step instructions for configuring VLAN & IP on Cisco and
D-Link management switches.
3
Interoperating with Cisco Systems
Note: By default a Cisco VLAN trunk sends to and receives traffic from all VLANs. To restrict
the traffic a VLAN trunk carries, remove vlan-list parameter to remove specific VLANs
from the allowed list.
Note: By default, all ports of a Cisco switch belong to VLAN 1, access mode.
The following configuration example is for L3 switches. For layer 3 switches, an IP address has
to be defined for each VLAN and for a layer 2 switch, an IP address can only be configured on one
VLAN for management purposes.
4
Interoperating with Cisco Systems
In this example, ports 1 to 18 are removed from VLAN 1(default VLAN) and are assigned to each
VLAN. Here are the details:
• Ports 1 to 6 are assigned to VLAN 10.
• Ports 7 to 12 are assigned to VLAN 20.
• Ports 13 to 18 are assigned to VLAN 30.
• Port 21 (uplink) is tagged with VLAN 10, 20, 30 and belongs to an untagged member of
VLAN 1.
Troubleshooting Examples
The following section lists command examples for verifying VLANs and port assignments on
Cisco and D-Link switches.
The following example shows you how to verify the member ports and all the VLAN interfaces.
5
Interoperating with Cisco Systems
Command Example
Catalyst# show vlan
Command Example
Catalyst# show interfaces gigabitEthernet 1/0/21 switchport
Name: Gi1/0/19
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: 1,10,20,30
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
The following example shows you how to set the access ports.
Command Example
Catalyst# show interfaces gigabitEthernet 1/0/1 switchport
Name: Gi1/0/1
Switchport: Enabled
Administrative Mode: static access
Operational Mode: down
Administrative Trunking Encapsulation: negotiate
6
Interoperating with Cisco Systems
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Appliance trust: none
The following example shows you how to verify the IP address of each VLAN interface.
Command Example
Catalyst# show ip interface brief
Interface IP-Address OK? Method Status Protocol
Vlan1 192.168.0.1 YES manual up up
Vlan10 192.168.10.1 YES manual up up
Vlan20 192.168.20.1 YES manual up up
Vlan30 192.168.30.1 YES manual up up
The following example shows you how to verify all the VLAN interfaces and member ports.
Command Example
switch# show vlan
Command: show vlan
7
Interoperating with Cisco Systems
Total Entries: 4
The following example shows you how to verify the IP address of each VLAN interface.
Command Example
switch# show ipif
Command: show ipif
IP Interface : 10
VLAN Name : 10
Interface Admin state : Enabled
DHCPv6 Client State : Disabled
IPv4 Address : 192.168.10.2/24 (Manual) Primary
Proxy ARP : Disabled (Local : Disabled)
IP Directed Broadcast : Disabled
IP MTU : 1500
IP Interface : 20
VLAN Name : 20
Interface Admin state : Enabled
DHCPv6 Client State : Disabled
IPv4 Address : 192.168.20.2/24 (Manual) Primary
Proxy ARP : Disabled (Local : Disabled)
IP Directed Broadcast : Disabled
IP MTU : 1500
IP Interface : 30
VLAN Name : 30
Interface Admin state : Enabled
DHCPv6 Client State : Disabled
8
Interoperating with Cisco Systems
IP Interface : System
VLAN Name : default
Interface Admin state : Enabled
DHCPv6 Client State : Disabled
IPv4 Address : 192.168.0.2/24 (Manual) Primary
Proxy ARP : Disabled (Local : Disabled)
IP Directed Broadcast : Disabled
IP MTU : 1500
Total Entries : 4
9
Interoperating with Cisco Systems
Link Aggregation
This chapter deals with Link Aggregation Control Protocol (LACP) function that both Cisco and
D-Link switches support.
Terminology
A dynamic trunk is active only when the dynamic trunk is enabled in both D-Link and Cisco
switches. To do so, the switches exchange messages, either through Port aggregation protocol
(PAgP) or Link Aggregation Control Protocol (LACP), to negotiate their status. If either of the
switches are ‘active’ (LACP) or ‘desirable’ (PAgP), then the switch initiates negotiation. If the
switch is ‘passive’ (LACP) or ‘auto’ (PAgP) then it forms a link aggregation automatically.
LACP
LACP is the Link Aggregation Control Protocol defined by the 802.3ad standard. It provides a
way for both parts to negotiate a port aggregation. With LACP, one or more additional links can
operate as standby links that will activate only if another active link goes down.
When connecting two switches with LACP, one of the switches must be active (send LACP frames)
and another should be set to passive.
Static 9
LACP-Passive 9
LACP- Active 9
Note: All ports in a trunk group must be configured at the same speed and VLAN.
10
Interoperating with Cisco Systems
Topology
Configuration
Static Trunk Configuration on a Cisco Switch
Troubleshooting Examples
Verifying the Static Channel Status on a Cisco Switch
The following example shows you how to correctly set the port mode and verify the channel
group ports.
Command Example
Catalyst# show etherchannel 1 summary
11
Interoperating with Cisco Systems
Port: Gi1/0/20
------------
Port: Gi1/0/21
------------
12
Interoperating with Cisco Systems
Port: Gi1/0/22
------------
Port-channel: Po1
------------
The following example shows you how to correctly set the port mode and verify the channel
group ports.
Command Example
switch# show link_aggregation
Command: show link_aggregation
The following example shows you how to create a channel group, when a switch plays an active
role in a LACP trunk.
13
Interoperating with Cisco Systems
The following example shows you how to create a channel group, when a switch plays a passive
role in a LACP trunk.
Command Example Purpose
Catalyst# config terminal
To create a channel
Catalyst(config)# interface range gigabitEthernet
Step 1 group 1 with
1/0/19-22
LACP-passive mode.
Catalyst(config-if)# channel-group 1 mode passive
The following example shows you how to create a trunk group, when a switch plays an active
role in a LACP trunk.
Command Example Purpose
switch# create link_aggregation group_id 1 type lacp
To create a trunk
switch# config link_aggregation group_id 1 master_port
Step 1 group 1 with
19 ports 19-22 state enable
LACP-active mode.
switch# config lacp_port 19-22 mode active
The following example shows you how to create a trunk group, when a switch plays a passive
role in a LACP trunk.
Command Example Purpose
switch# create link_aggregation group_id 1 type lacp
To create a trunk
switch# config link_aggregation group_id 1 master_port
Step 1 group 1 with
19 ports 19-22 state enable
LACP-passive mode.
switch# config lacp_port 19-22 mode passive
Note: By default, the LACP port mode is set passive in D-Link switches.
The following example shows you how to correctly set the port mode and verify the channel
group ports.
Command Example
Catalyst# show interfaces etherchannel
----
GigabitEthernet1/0/19:
Port state = Up Sngl-port-Bndl Mstr Not-in-Bndl
Channel group = 1 Mode = Active Gcchange = -
Port-channel = null GC = - Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = LACP
Local information:
LACP port Admin Oper Port Port
14
Interoperating with Cisco Systems
----
GigabitEthernet1/0/20:
Port state = Up Sngl-port-Bndl Mstr Not-in-Bndl
Channel group = 1 Mode = Active Gcchange = -
Port-channel = null GC = - Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = LACP
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi1/0/20 SA indep 32768 0x1 0x1 0x14 0x7D
----
GigabitEthernet1/0/21:
Port state = Up Sngl-port-Bndl Mstr Not-in-Bndl
Channel group = 1 Mode = Active Gcchange = -
Port-channel = null GC = - Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = LACP
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi1/0/21 SA indep 32768 0x1 0x1 0x15 0x7D
----
GigabitEthernet1/0/22:
Port state = Up Sngl-port-Bndl Mstr Not-in-Bndl
Channel group = 1 Mode = Active Gcchange = -
Port-channel = null GC = - Pseudo port-channel = Po1
Port index = 0 Load = 0x00 Protocol = LACP
Local information:
LACP port Admin Oper Port Port
Port Flags State Priority Key Key Number State
Gi1/0/22 SA indep 32768 0x1 0x1 0x16 0x7D
----
15
Interoperating with Cisco Systems
The following example shows you how to correctly set the ports of a trunk group.
Command Example
switch# show link_aggregation
Command: show link_aggregation
Total Entries : 1
The following example shows you how to correctly set the port mode.
Command Example
switch# show lacp
Command: show lacp_port
Port Activity
----- --------
1 Passive
2 Passive
3 Passive
……
19 Passive
20 Passive
21 Passive
22 Passive
16
Interoperating with Cisco Systems
Note: Since STP/RSTP function can only run in a single VLAN, all connections on Per-VLAN
Spanning Tree (PVST) should be located in the same VLAN.
Topology
Configuration
Rapid-PVST Configuration on a Cisco Switch
17
Interoperating with Cisco Systems
Troubleshooting Examples
The following example shows you how to verify the STP protocol version, STP priority and port.
Command Example
Catalyst# show span vlan 1
VLAN0001
Spanning tree enabled protocol rstp
Root ID Priority 4097
Address 0021.56b0.5c00
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
The following example shows you how to check STP detail information.
Command Example
Catalyst# show spanning-tree detail
18
Interoperating with Cisco Systems
The following example shows you how to verify if the spanning mode is RSTP and STP are
enabled.
Command Example
switch:admin# show stp
Command: show stp
The following example shows you how to verify the Root Bridge.
Command Example
switch:admin# show stp instance 0
Command: show stp instance 0
19
Interoperating with Cisco Systems
The following example shows you how to verify the role of the interface.
Command Example
switch:admin# show stp ports 23
Command: show stp ports 23
20
Interoperating with Cisco Systems
Note: In a MSTP and PVST+ network, the Common Spanning-tree (CST) root must be
inside the MST backbone, and a PVST+ switch cannot connect to multiple MST
regions.
Topology
Configuration
Multiple Spanning Configuration on a Cisco Switch
21
Interoperating with Cisco Systems
22
Interoperating with Cisco Systems
Troubleshooting Examples
Verifying MSTP Mode and Ports Status on a Cisco Switch
The following example shows you how to verify an MSTP instance and VLAN mapping
information.
Command Example
Catalyst(config-mst)# show pending
Pending MST configuration
Name [test]
Revision 1 Instances configured 3
23
Interoperating with Cisco Systems
The following example shows you how to check the STP Status.
Command Example
Catalyst# show spanning-tree
MST0
Spanning tree enabled protocol mstp
Root ID Priority 4096
Address 0021.56b0.5c00
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
MST1
Spanning tree enabled protocol mstp
Root ID Priority 4097
Address 0021.56b0.5c00
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
MST2
Spanning tree enabled protocol mstp
Root ID Priority 4098
24
Interoperating with Cisco Systems
Address 0021.56b0.5c00
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
The following example shows you how to check the MST protocol information.
Command Example
Catalyst# show spanning-tree mst
The following example shows you how to verify if the spanning mode is MSTP and STP is
enabled.
25
Interoperating with Cisco Systems
Command Example
switch:admin# show stp
Command: show stp
The following example shows you how to check the spanning instance information.
Command Example
switch:admin# show stp instance 0
Command: show stp instance 0
The following example shows you how to check the STP instance and VALN mapping.
Command Example
switch:admin# show stp mst_config_id
Command: show stp mst_config_id
26
Interoperating with Cisco Systems
2 20
Configuration
OSPF Configuration on a Cisco Switch - 1
27
Interoperating with Cisco Systems
Catalyst(config)# ip routing
Catalyst(config)# router ospf 100
Catalyst(config-router)# router-id 192.168.20.1 To enable OSPF on
Step 2 Catalyst(config-router)# network 192.168.20.0 specific interfaces and
0.0.0.255 area 0 setup router ID.
Catalyst(config-router)# network 192.168.30.0
0.0.0.255 area 0
Catalyst(config)# ip routing
Catalyst(config)# router ospf 100
Catalyst(config-router)# router-id 192.168.30.1 To enable OSPF on
Step 2 Catalyst(config-router)# network 192.168.30.0 specific interfaces and
0.0.0.255 area 0 setup router ID.
Catalyst(config-router)# network 192.168.40.0
0.0.0.255 area 0
28
Interoperating with Cisco Systems
Troubleshooting Examples
Verifying OSPF information on a Cisco Switch
29
Interoperating with Cisco Systems
The following example shows you how to verify if the OSPF neighbors are established.
Command Example
Catalyst# show ip ospf neighbor
The following example shows you how to verify if the route entries that are learnt by the
switches.
Command Example
Catalyst# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
The following example shows you how to check the OSPF interface status.
Command Example
Catalyst# show ip ospf interface
GigabitEthernet1/0/22 is up, line protocol is up (connected)
Internet Address 192.168.30.1/24, Area 0
Process ID 100, Router ID 192.168.20.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 192.168.30.1, Interface address 192.168.30.2
Backup Designated router (ID) 192.168.20.1, Interface address 192.168.30.1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
30
Interoperating with Cisco Systems
oob-resync timeout 40
Hello due in 00:00:01
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.30.1 (Designated Router)
Suppress hello for 0 neighbor(s)
GigabitEthernet1/0/23 is up, line protocol is up (connected)
Internet Address 192.168.20.2/24, Area 0
Process ID 100, Router ID 192.168.20.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 192.168.10.1, Interface address 192.168.20.1
Backup Designated router (ID) 192.168.20.1, Interface address 192.168.20.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:07
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 5
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 192.168.10.1 (Designated Router)
Suppress hello for 0 neighbor(s)
The following example shows you how to verify if the OSPF is enabled on correct interfaces.
Command Example
switch:admin# show ospf
Command: show ospf
Total Entries : 3
31
Interoperating with Cisco Systems
Area ID Type Stub Import Summary LSA Stub Default Cost Translate
--------------- ------ ----------------------- ----------------- ---------
0.0.0.0 Normal None None None
Total Entries : 1
Total Entries : 0
Total Entries : 0
Total Entries : 0
The following example shows you how to verify if the OSPF neighbor is established.
Command Example
switch:admin# show ospf neighbor
Command: show ospf neighbor
Total Entries : 1
The following example shows you how to check the OSPF interface information.
Command Example
switch:admin# show ospf ipif 10
Command: show ospf ipif 10
32
Interoperating with Cisco Systems
Total Entries : 1
The following example shows you how to verify all the route entries that are learnt by the
switches.
Command Example
switch:admin# show iproute
Command: show iproute
Routing Table
Total Entries : 6
Total Entries : 1
33
Interoperating with Cisco Systems
Configuration
OSPF Configuration on Cisco Switch - 1
Create a Loopback
interface for Router ID.
Cisco router prefers the
Switch(config)#interface loopback 0
address of loopback
Step 2 Switch(config-if)#ip address 10.0.0.1 255.255.255.255
interface over the
Switch(config-if)#no shut
address of all physical
interfaces while
choosing Router ID.
Switch(config)#ip routing
Switch(config)#router ospf 100
Switch(config-router)#network 192.168.20.0 0.0.0.255 Enable OSPF on specific
Step 3
area 1 interfaces.
Switch(config-router)#network 192.168.30.0 0.0.0.255
area 0
34
Interoperating with Cisco Systems
35
Interoperating with Cisco Systems
Troubleshooting Examples
Verifying OSPF information on a Cisco Switch
The following example shows you how to check OSPF detailed information on Cisco Switch.
Cisco Switch uses loopback interface to be Router ID and Area 1 should be created
Command Example
Catalyst# show ip ospf
Routing Process "ospf 100" with ID 10.0.0.1
Start time: 00:01:21.528, Time elapsed: 4d19h
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
It is an area border router
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
IETF NSF helper support enabled
Cisco NSF helper support enabled
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:27:19.763 ago
SPF algorithm executed 14 times
Area ranges are
Number of LSA 8. Checksum Sum 0x07E502
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 1
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 1
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:33:43.525 ago
SPF algorithm executed 8 times
Area ranges are
Number of LSA 6. Checksum Sum 0x036A95
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 1
36
Interoperating with Cisco Systems
The following example shows you how to verify if the OSPF is enabled on correct interfaces and
if the area assignment is correct.
Command Example
switch:admin# show ospf
Command: show ospf
Total Entries : 3
Area ID Type Stub Import Summary LSA Stub Default Cost Translate
-------- ------ ----------------------- ----------------- ---------
0.0.0.0 Normal None None None
0.0.0.1 Normal None None None
Total Entries : 2
Total Entries : 0
Total Entries : 0
37
Interoperating with Cisco Systems
Total Entries : 0
The following example shows you how to verify if the OSPF interface information are correct.
Command Example
switch:admin# show ospf ipif 10
Command: show ospf ipif 10
Total Entries : 1
38