Brocade学习笔记

1. re-enabling the telnet service
switch(config)#no telnet server shutdown
(config)#rbridge-id 3
#no telnet server shutdown

2. Establishing an ssh connection
#ssh -l admin 10.20.51.68
#ssh -l admin -m hmac-md5 -c aes128-cbc 10.20.51.68
use -m and -c options to override the default encryption and hash algorithms.

3.importing an SSH public key
enter certutil import sshkey,followed by user Username host IP_address directory file_path

file key_filename login Login_ID
#certutil import sshkey user admin host 10.70.4.106 directory /users/home40/bmeenaks/.ssh

file id_rsa.pub login fvt

if you are in VCS mode,you must enter RBridge ID configuration mode before issuing the

command
#certutil import sshkey user admin host 10.70.4.106 directory /users/home40/bmeenaks/.ssh

file id_rsa.pub login fvt rbridge_id 3

delete an SSH public key
#no certutil sshkey user admin rbridge-id all

#ssh server shutdown

4. configuring a static IPV4 ethernet address
#do show running-config interface management
interface management 1/0
no ip address dhcp
ip address 10.24.85.81/20
vrf forwarding mgmt-vrf
no ipv6 address autoconfig

a Top-of-Rack(ToR) switch has a single management port,and the port number for management

port is always 0.
On a modular switch with two redundant management modules,you can configure two management

ports. The port numbers are 1 and 2.

switch(config)#rbridge-id 1
switch(config-rbridge-id-1#chassis virtual-ip 10.24.85.90/20

Apart from the two IP address on the management modules,modular switches also supports a

chassis virtual IP address.Using the virtual IP address,you can login to the switch.The VCS

virtual IP address binds to the active MM automatically.

5. Displaying the network interface
#show interface management

6. Confiuring the management interface speed
#configure terminal
#interface management 1/0
#speed auto   
the valid values are 10,100, and auto.


7. Setting and dispalying the host name and chassis name
#configure terminal
#no telnet server disable
#switch-attributes 1
#host-name lab1_vds0023
#chassis-name lab1_vds0023
#exit


8. Viewing switch types
#show chassis

9. Creating a logical chassis cluster
#vcs vcsid 22 rbridge-id 15 logical-chassis enbale

enter the vcs command with options to set the VCD ID,the RBridge ID and enable logical

chassis mode for the switch.
Changing only the RBridge ID each time.You must,however,set the VCS ID to the same value on

each node that belongs to the cluster.

10.  Node 2 local configuration before matching the combined global configuration
#interface TenGigabitEthernet 4/0/3
fabric isl enable
fabric trunk enable
switchport
switchport mode access
switchport access vlan 1
spanning-tree shutdown
mac access-group test1 in
no shutdown.

11. Converting a fabric cluster to a logical chassis cluster
enter the vcs logical-chassis enable command with desired options;
#vcs logical-chassis enable rbridge-id all default-config
#show vcs
#show vcs detail


12. converting to a fabric cluster while preserving configuration
#copy rbridge-running-config rbridge-id "id" <location_configfilename>
saving the configuration file to a remote FTP,SCP,SFTP,or usb location

#no vcs logical-chassis enable rbridge-id all default-config


13. Removing a node from a logical chassis cluster
#no vcs logical-chassis enable rbridge-id 110 default-config
#no vcs enable rbridge-id 110


14. Replacing a node in a logical chassis cluster
Run the following command on the principal switch
#vcs replace rbridge-id 3
Enter the WWN of the new switch:

Assign the RBridge ID of 3 to the new node by running the following command on the new

node:
#vcs rbridge-id 3


15. Changing an RBridge ID on a switch within a fabric
#chassis disable
#no vcs enable rbridge-id 3
#show vcs detail

16.  Displaying switch interface
#show running-config interface tengigabitethernet


17.  
#show slots   
#show mm               display the management modules
#show sfm              display switch fabric modules
#show linecard         display information for the line cards.


18.  Replacing a line card
#power-off linecard 4
#configure terminal
#rbridge-id 1
#no linecard 4
#linecard 4 "line name"
#exit
#copy running-config startup-config
#show running-config rbridge-id 4 linecard


19.
#reload        'cold reboot'
#fastboot      'cold reboot'
#reload system

20. Configuring automatic uploading of supportSave data
#support autoupload-param hostip 10.31.1.22 username supportadmin directory

/users/support/ffdc_autoupload protocol ftp password (<string>)


21.
#do show running-config support autoupload-param

22. NTP setting.
#clock set 2015-04-04T12:00:00 rbridge-id all
#clock timezone America/Los_Angeles rbridge-id all
#show clock
#show clock rbridge-id all

#ntp server 192.168.1.1
syncronzies the time to local switch.  
#show ntp status

23. default configuration
defaultconfig.novcs
defaultconfig.vcs
#show file defaultconfig.novcs
#show file defaultconfig.vcs


#copy running-config flash://myconfig
#dir


24.
#copy startup-config ftp://admin:****@10.0.0.1//archive/startup-config_vds

enable the USB device
#usb on
#copy startup-config usb://startup-config


25. Configuring SNMP community strings
#snmp-server community public groupname user

snmp-server host ipv4_host dns_host community-string [version {1|2c}] [udp-port port]

[severity-level|none|debug|info|warning|error|critical]command.

#snmp-server host 10.0.0.1 commaccess version 2c udp-port 162 severity warning.

Configuring SNMP server groups
snmp-server group 'groupname' {v1|v2c|v3{auth|noauth|priv}} [read 'viewname'] [write

'viewname'] [notify 'viewname'] command.

#snmp-server group groupl v3 auth read myview write myview notify myview

configuring SNMP server users
#snmp-server user user1 groupname group1
#snmp-server user user2 groupname group1 auth md5 auth-password password priv DES priv-

password
#snmp-server user snmpadmin1 groupname snmpadmin auth sha auth-password private123 priv DES

priv-password public123


26. Configuring interconnected Ethernet Fabrics
#interface port-channel 300
#do show running-config interface port-channel 300
#switchport
#switchport mode trunk
#switchport trunk allow vlan all
#channel-group 300 mode active type standard
#do show running-config interface



27. Configuration zone
#show running-config zoning
#configure terminal
#zoning definded-configuration alias aliasl
#no member-entry 10:00:00:00:00:00:00:02
#exit
#zoning enabled-configuration cfg-action cfg-save

本文出自 “想?不想!” 博客,谢绝转载!

你可能感兴趣的:(brocade)