In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Common commands for Brocade300 switches
Default IP address of Brocade300 switch: 10.77.77.77
User name: admin
Password: password
You can log in to the switch through the IE interface, and you need to install the JAVA environment
Can log in via Telenet and only support one user Telenet at the same time
Support serial port login: the default serial port parameters are: 9600, Npgi, 8, and 1.
1: basic configuration:
1. Use help without parameters to query all the commands of the switch.
2. You can use ipaddrshow to view the current IP in command mode
Brocade300_up:admin > ipaddrshow
SWITCH
Ethernet IP Address: 10.77.77.77
Ethernet Subnetmask: 255.255.255.0
Fibre Channel IP Address: none
Fibre Channel Subnetmask: none
Gateway IP Address: none
DHCP: Off
3. You can change the IP address by using ipaddrset
Brocade300_up:admin > ipaddrset
Ethernet IP Address [10.77.77.77]: # enter the IP address Ethernet Subnetmask [255.255.255.0]: # input mask that the switch needs to set
Fibre Channel IP Address [none]:
Fibre Channel Subnetmask [none]:
Gateway IP Address [none]: # input Gateway
DHCP [Off]: # whether to enable DHCP
4. Use passwd to change the switch password
Brocade300_up:admin > passwd # use the passwd command to change the current user password
Changing password for admin
Enter old password: # enter the password currently in use
Enter new password: # enter a new password
Re-type new password: # confirm the new password
Passwd: all authentication tokens updated successfully
Saving password to stable storage.
Password saved to stable storage successfully.
5. View the current status of the switch switchshow (you can query information such as domain ID number and port status)
6. View the current licenseShow (zone license to view the license of zone)
Second, the configuration of zong (command mode)
Zoning is a standard function on the Brocade switch. By configuring Zoning on the switch in the SAN network, the devices connected in the SAN network can be logically divided into different areas, so that the devices in each area can not access each other, and the hosts and devices in the network are isolated from each other. There are many differences between zoning and VLAN. It is easy, convenient and intuitive to use the command method to create it.
1. Establish zone
1.1 use the zonecreate command to create a zone
Zonecreate "zone name", "DomainID, port number; DomainID, port number" # establish zone
1.2 create a configure file using the cfgcreate command
Cfgcreate "cfg name", "need to add zone name of cfg; need to add zone name of cfg" # create cfg file
1.3 use cfgenable to take effect of the current configuration file
Cfgenable "cfg_name" # effective cfg
1.4 Save cfg files using cfgsave #
1.5 use cfgshow # to display zone information
Example: zonecreate "zone_1", "1 meme 0 pint 1 pyrrine 1 pencore 1 pitcher 2 pyrrine 3 pyritte 1 pyrus 4 pincer 5pinct 1 pincer 6 1 cfg_switch 7 "\\ create a zone named zone_1, add ports 0-7 of the switch to the zone cfgcreate" cfg_switch "," zone_1 "\\ create a configuration file named cfg_switch Add the newly created zone_1 to cfg cfgenable "cfg_switch"\\ to make the configuration file named cfg_switch effective cfgsave\\ Save the cfg file
2. Add a new zone
2. 1 zongcreate "zong_storage", "1 page4, 5, 1, 5, 1, 6 1To create a new zone named zong_storage, add ports 4-7 of the switch to the zone cfgadd "cfg_switch", and "zone_storage"\ add the new zone named zone_storage to the original configuration file cfgenable "cfg_switch"\\ effective cfg cfgsave\\ save the cfg
3. Remove a port from a zong and join it in another zone
3.1Use zongremove to remove port 3.2 in zone use zongadd to add port to zone 3.3 use cfgenable to take effect current profile 3.4 use cfgsave to save current cfg profile 3.5 use cfgshow to check whether the current profile is in effect, normal example: remove port 2 in zone_1 and add it to zong_storage to make it effective zongremove "zone_1" "1, 2"\\ remove port 2 zongadd "zong_storage" in vertical zone_1 "1cfg 2"\\ add port 2 to vertical zong_storage cfgenable "cfg_switch"\\ effective current configuration cfgsave\\ Save cfg cfgshow\\ check whether the current cfg is valid 4, delete zone zongdel "zone name" cfgenable cfgsave cfgshow 5, Delete cfg profile cfgdisable\\ cease to take effect zone cfgclear\\ clear cfg configuration information cfgsave\\ Save cfg configuration file cfgshow\\ check to see if it works
Note: 1. Only devices within the same zone can access each other after a Zone takes effect.
2. External ports of zone cannot communicate with each other if they do not join zone.
3. Devices in different Zone cannot access each other
4. A port can belong to multiple Zone
5. There can only be one effective cfg configuration file in a switch.
6. The domainID number in each switch may be different, which can be viewed using switchshow.
Attached: actual combat examples
Environment: users do virtualization business, which is divided into one and two phases, and the storage LUN is mapped to the storage channel.
The two switches are redundant each other
The first phase business uses switch port 0-3, and the second phase business uses switch port 8-11.
Storage uses switch ports 4, 5, 6, 7 and 11, 12 for mapping LUN communication
Letter and cascade
The 4, 5, 6, 7 storage channels connected by the switch map LUN to the first phase of the service.
The 11 and 12 storage channels connected by the switch map LUN to the second phase service.
Requirements: the first phase business and the second phase business can not communicate with each other, guarantee storage ports 4, 5, 6, 7
Don't drop the line.
Specific implementation steps:
The first step: switch port 0-7 into a zone to ensure that the first phase of business can communicate with each other without interruption.
Step 2: switch 4p5pc6 port 7 is put into a Zone to ensure that the storage cascading ports can communicate with each other. Guarantee
Certificate storage is not offline.
Step 3: ports 8-13 of the switch are divided into a zone to ensure that the second phase of the service can communicate with each other.
The specific operation commands are as follows:
First step: (first phase of business)
Switch 1: zonecreate "zone_1", "1meme0pince1vice1vict1vice2vict1pyrinomicum 3schitting1vice4ping1ping5Chine6schitting1JE7"
Cfgcreate "cfg_switch", "zone_1"
Cfgenable "cfg_switch"
Cfgsave
Switch 2: zonecreate "zone_1", "22 beacon 0, 22 pyrrine 1, 22 pyrrine 1, 22 pyrrine 2, 22 pyrrine, 3 pyrrine, 4 pincer, 522 pyrrine, 522 pyrrine, 622 pyrrine, 7".
Cfgcreate "cfg_switch", "zone_1"
Cfgenable "cfg_switch"
Cfgsave
After completing the above operations, observe the business situation at this stage, and proceed to the next step after normal.
Step 2: (storage cascading)
Switch 1: zongcreate "zong_storage", "1meme 4pince1meme 5skimming 6pyroria 1pyror7"
Cfgadd "cfg_switch", "zone_storage"
Cfgenable "cfg_switch"
Cfgsave
Switch 2: zongcreate "zong_storage", "22 beacon 4, 22 pyrrine 5, 22 pyrrine 6, pyrrine 22 7"
Cfgadd "cfg_switch", "zone_storage"
Cfgenable "cfg_switch"
Cfgsave
After completing the above operations, observe the business situation at this stage, and proceed to the next step after normal.
Step 3: (second phase of business)
Switch 1: zongcreate "zong_2", "1meme 8pinct 1jinchen 9schizi 10vici 1pimelent1pyritrium 1pyritrium 1pyritanus 1pyrus 13"
Cfgadd "cfg_switch", "zone_2"
Cfgenable "cfg_switch"
Cfgsave
Switch 2: zongcreate "zong_2", "22 beacon 8, 22 pyrrine 9, 10 pyrrine 22 pyrrine 11, paddle 22 pyrrine, 12 pyrus 22 13"
Cfgadd "cfg_switch", "zone_2"
Cfgenable "cfg_switch"
Cfgsave
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 214
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.