Brocade To Cisco Reference Command Guide
Brocade To Cisco Reference Command Guide
Brocade To Cisco Reference Command Guide
___________________________________________________________
Quick Reference Guide for the Brocade Ethernet Product Portfolio
Stop Bits
1
Data Bits
8
Flow Control
None
Parity
None
(Start
Additional CLI navigation aids are located at the end of this guide.
Page 1
Page 2
(Layer-2 IP address)
(NOTE: By default, Brocade switches and routers do not change the system time for daylight savings time. To enable
daylight savings time, enter the following command)
Device(config)#clock summer-time
Device(config)#sntp server <a.b.c.d>
Page 3
Status
ACTIVE
STANDBY
OK
Ports
8
8
24
Starting MAC
00e0.5202.a2d4
00e0.5202.a334
00e0.5202.a2d4
Page 4
Deleting a VLAN
Device(config)#no vlan <401>
(Note: The default VLAN cannot be deleted however it can be moved to a different VLAN ID.)
Page 5
Page 6
Configure Routing
Configuring a Static Route
Device(config)# ip route <10.10.202.0> <255.255.255.0>< 20.20.201.10> 1
View the Route Table
Device(config)# show ip route
Configuring a Static ARP entry
Device(config)# arp 1 < 10.10.201.5> <00:30:6d:15:ec:01> ethernet <4/1>
View the ARP Table
Device(config)# show arp
(Note: you can view the entire ARP table, or selective entries)
RIP Configuration
Enable RIP Routing Globally
Device(config)#router rip
Device(config-rip-router)#
Put RIP on Network Interfaces
Device(config-rip-router)#interface ve 1
Device(config-vif-1)#ip rip v1-compatible-v2
OSPF Configuration
Enable OSPF Routing Globally
Device(config)#router ospf
Device(config-ospf-router)#
Page 7
Page 8
Page 9
Page 10
Page 11
1. Download new version of code to the Secondary flash area of the Device
Device# copy tftp flash 192.168.10.249 Device-code-v7.5.04 secondary
2. Set the Device to boot from secondary flash upon next reload
Device(config)# boot system flash secondary
Device(config)# wr mem
3. Then reload the device and run on secondary flash for a week or so
Device# reload
4. Once the new code is proven to be working fine, copy the secondary flash into primary
Device# copy flash flash primary
5. remove the command for the box to boot up using the secondary flash code.
Device(config)# no boot system flash secondary
Device(config)# wr mem
Page 12
Ctrl-B
Ctrl-C
Escape and terminate command prompts and ongoing tasks (such as lengthy displays), and
displays a fresh command prompt.
Ctrl-D
Ctrl-E
Ctrl-F
Ctrl-K
Delete all characters from the cursor to the end of the command line.
Ctrl-R/L
Ctrl-N
Ctrl-P
Ctrl-X/U
Delete all characters from the cursor to the beginning of the command line.
Ctrl-W
Ctrl-Z
Move from any CONFIG level of the CLI to the Privileged EXEC level;
at the Privileged EXEC level, moves to the User EXEC level.
Page 13
Character Operation
| A vertical bar separates two alternative values or sets of values. The output can match one
or the other value. For example, the following regular expression matches output that contains either abc or defg: abc|defg
( ) Parentheses allow you to create complex expressions.
For example, the following complex expression matches on abc, abcabc, or defg, but not on abcdefgdefg: ((abc)+)|((defg)?)
Page 14
o Configure time
o Configure logging
o Configure ACLs
o management access
o management traffic control
Page 15
BROCADE SYNTAX
COMMENTS
Router> enable
Router# conf t
Router# conf t
Router# show
Router(conf)# show
Set hostname
Brocade passwords
encrypted by default
Router(config)# sh interface
Router(config)# sh ip interface
Router(config)# int e1
Router(config-int-e1)#
Router(config-int-e1)# port-name
link to router
Router(config-int-e1)# ip address
10.1.2.3/24
Router(config-int-e1)# enable
Page 16
BROCADE SYNTAX
NOTES
Conf t
Hostname <___-swg-___-xxx>
end
Conf t
Hostname <___-swg-___-xxx>
end
Configure hostname
Conf t
Interface vlan <sss>
Ip address <150.sss.30.___><
255.255.240.0>
Conf t
---Ip address <150.sss.30.___><
255.255.240.0>
Ip address <150.sss.30.___/20>
end
end
Conf t
Interface range GigabitEthernet
<d/0/1-ccc>
Switchport access vlan <sss>
Switchport mode access
Spanning-tree portfast
Spanning-tree bpduguard enable
Conf t
----
No cdp enable
No shutdown
end
Vlan <sss>
Untag eth 1 to <ccc-1>
---- (enabled by default)
Int eth 1 to <ccc-1><cr>stp-bpduguard<cr>
---- (disabled by default)
---- (interfaces enabled by default)
end
Conf t
Interface GigabitEthernet <d/0/ccc>
Conf t
----
shutdown
Switchport trunk encapsulation dot1q
Switchport mode trunk
Switchport trunk allow vlan <sss>
No shutdown
end
Vlan <sss>
Tag eth <ccc>
---------end
Conf t
Ip default-gateway <150.sss.30.250>
end
Conf t
Ip default-gateway <150.sss.30.250>
end
Conf t
Banner login L
*****enter banner here****
L
end
Conf t
Banner login L
*****enter banner here****
L
end
Conf t
Snmp-server community
<asciistring> ro
Snmp-server community
<asciistring> rw
Snmp-server community
<asciistring> rw
Snmp-server enable traps
Snmp-server host <ipaddr> traps
<string>
Conf t
Snmp-server community <asciistring> ro
Page 17
Conf t
Ip domain-name <xxx.hqs.gov>
Crypto key generate rsa 2048
end
Conf t
Ip dns domain-name <xxx.hqs.gov>
Crypto key generate (DSA with default
1024)
end
Conf t
Enable secret <enable>
Conf t
Enable super-user-password <enable>
Service password-encryption
Line console 0
Password <enable>
login
Exec-timeout 5 0
Line vty 0 4
Password <enable>
login
Exec-timeout 5 0
Transport input telnet ssh
Line vty 5 15
Password <enable>
login
Exec-timeout 5 0
Transport input telnet ssh
end
Conf t
Ntp server <150.sss.30.250> prefer
Clock timezone GMT 0
Service timestamps debug datetime
msec
Service timestamps log database
msec
Logging buffered 4096 informational
Logging console informational
No ip domain-lookup
No ip http server
No snmp-server system-shutdown
Privilege exec level 3 erase
Ip classless
Errdisable recovery cause psecureviolation
Errdisable recovery interval 30
end
Conf t
Username <fielduser> privilege 3
<password>
end
Conf t
Username <fielduser> privilege 4
<password>
end
Conf t
Tacacs-server host <ipaddr>
Tacacs-server host <ipaddr>
Tacacs-server key <asciikey>
Conf t
Tacacs-server host <ipaddr>
Tacacs-server host <ipaddr>
Tacacs-server key <asciikey>
Page 18
Conf t
Aaa new-model
Aaa authentication login default
group tacacs+ local
Aaa authorization console
Aaa authorization exec default group
tacacs+ local
Aaa authorization commands 1
default group tacacs+ local
Aaa authorization commands 3
default group tacacs+ local
Aaa authorization commands 15
default group tacacs+ local
Aaa authorization config-commands
end
Conf t
---Aaa authentication login default tacacs+
local
Enable aaa console
Aaa authorization exec default tacacs+
none
Aaa authorization commands 0 default
tacacs+ none
----
Conf t
Aaa accounting exec default startstop group tacacs+
Aaa accounting commands 1 default
start-stop group tacacs+
Aaa accounting commands 3 default
start-stop group tacacs+
Aaa accounting commands 15 default
start-stop group tacacs+
Aaa accounting connection default
start-stop group tacacs+
end
------end
Conf t
Aaa accounting exec default start-stop
tacacs+
Aaa accounting commands 0 default startstop tacacs+
Aaa accounting system default start-stop
tacacs+
----
(not supported)
end
END CONFIGURATION
Additional Notes:
A Cisco trunk port is equivalent to a Brocade tagged port.
A Cisco access port is equivalent to a Brocade untagged port.
A Cisco channel is equivalent to a Brocade trunk/LAG
Cisco defines VLAN membership under each interface.
Brocade defines VLAN membership globally.
Page 19
Page 20
Page 21
OSPF
Page 22
OSPF v3
BGP v4
Page 23
BGP v6
Page 24
This document briefly describes a connection between a Cisco IOS based LAN switch and a Brocade LAN
Switch with either single link or in a second example with a trunk (link aggregation).
Lab setup:
Both switches are embedded in an RSTP environment with a per VLAN Spanning Tree configuration.
Cisco is using a different BPDU Mac address in their so called PVST+ implementation of RSTP but Brocade
can autodetect this on interconnection links and interoperate without any problems.
Make shure the Cisco switch runs an RSTP capable IOS version !
Due to the fact that Cisco is more standard compliant to IEEE 802.1q we need to convert the Brocade config
to make the default VLAN 1 being send over tagged links untagged by default as Cisco does.
This can be achieved in setting the default VLAN to a different number on the Brocade site and create a new
VLAN 1. Finally dual-mode is activated on the connecting link to make the interconnection work.
The configuration for both sides looks like this:
Page 25
default-vlan-id 3999
fdp run (optional)
cdp run (optional)
clock summer-time
clock timezone gmt GMT+01
no vlan-dynamic-discovery
!
interface ethernet 49
port-name Backup Link -> Cat 2960
spanning-tree 802-1w admin-pt2pt-mac
no fdp enable
dual-mode 1
!
interface ethernet 50
port-name LWL Link -> Cat 2950
spanning-tree 802-1w admin-pt2pt-mac
no fdp enable
dual-mode 1
!
interface ve 1
ip address 172.30.1.1 255.255.255.0
!
interface ve 77
ip address 192.168.1.77 255.255.255.0
!
end
Cisco Config:
version 12.2
service timestamps log datetime localtime
!
hostname Cat2960
!
spanning-tree mode rapid-pvst
spanning-tree extend system-id
!
interface GigabitEthernet0/1
description Link -> Brocade Switch
switchport mode trunk
switchport nonegotiate
!
interface GigabitEthernet0/2
description Link -> Cisco Catalyst 2950
switchport mode trunk
!
interface Vlan1
ip address 172.30.1.254 255.255.255.0
no ip route-cache
Device Quick Reference Guide
Page 26
!
end
Recommendation is to switch off al proprietary protocols on the interconnection links.
- Cisco: On ports to Brocade "switchport nonegotiate" (Cisco DTP etc. disable !) - Brocade: Global "no vlandynamic-discovery"
Link Aggregation:
Lab setup:
Page 27
interface ethernet 16
port-name Red Link -> Cat 2950
spanning-tree 802-1w admin-pt2pt-mac
dual-mode 1
!
interface ethernet 49
port-name LWL LAG Trunk -> Cat 2960
spanning-tree 802-1w admin-pt2pt-mac
link-aggregate configure key 10100
link-aggregate active
dual-mode 1
!
interface ethernet 50
port-name LWL LAG Trunk -> Cat 2960
spanning-tree 802-1w admin-pt2pt-mac
link-aggregate configure key 10100
link-aggregate active
dual-mode 1
!
interface ve 1
ip address 172.30.1.1 255.255.255.0
!
interface ve 77
ip address 192.168.7.77 255.255.255.0
!
end
Page 28
!
interface GigabitEthernet0/2 description LAG Trunk -> Brocade
switchport mode trunk switchport nonegotiate channel-group 1 mode active
!
interface Vlan1
ip address 172.30.1.254 255.255.255.0
no ip route-cache
!
end
Page 29
Page 30
REMARKS:
It is not possible to negotiate the LACP group key from Brocade to Cisco!
The key on the Brocade configuration site is just ignored and replaced by a default key if the Cisco site is in
LACP passive mode and link negotiation is set to on.
You cannot define LAG key groups on the Brocade site in mixed environments. Different groups must be
selected via the port-channel group and the corresponding interface number on the Cisco site.
Page 31