It is very helpful to know about vswitch settings. Here we mainly analyze the basic knowledge about vswitch settings and software upgrade. vswitches play an important role as the core equipment of the enterprise network, whether it is a layer-2 switch at the access layer or a layer-3 switch at the aggregation layer or core layer, we must ensure the normal and safe operation of these devices.
However, no network can be said to be secure. Therefore, the switch must have a problem on that day. Therefore, the network administrator should back up necessary data at ordinary times, this helps the enterprise restore to normal immediately after a problem occurs. Today, I will talk about how to back up the data in switch settings.
What are the important data in vswitches?
Like the hardware firewalls and routers we have introduced earlier, the data we need to take care of in the switch is the operating system file stored in the FLASH of the switch and the config configuration file also saved in the FLASH. You can use the show flashCicso device or dis flashH3C device to check which file should be backed up.
Back up and restore switch data using TFTP
The TFTP method sets a computer in the network as a TFTP service, and then backs up and recovers data. To back up and recover the vswitch smoothly, we need to establish a TFTP server in advance, so that the TFTP server and the vswitch can be connected together through the network, then, use the get or put command to back up and restore the flash or config file.
Generally, we use the Cisco TFTP Server software to establish the TFTP Server Step 3: Next we need to test the created TFTP Server. First we need to test it from the local machine, go to "start-> Run", Enter CMD to enter the command line window, and enter the command line following the tftp-I host get | put source destinationformat. For example, I want to upload the 111.txt file in the current directory to the TFTP server at 10.91.30.48, you can run tftp-I 10.91.30.48 put 111.txt to complete the upload operation. After the upload is successful, we will see the transmission information from the Cisco TFTP server main program window, and we can see the existence of 111.txt in the root directory we set. Creating a TFTP Server through the Cisco TFTP Server is simple and involves the following steps.
Step 1: Download the Cisco TFTP Server program for decompression and then run the main program.
Step 2: Use "View-> options" in the main program menu to set the root directory of the TFTP server. In the future, we will upload and download the data files set by the switch through this directory. By default, the file is in the decompressed directory of the Cisco TFTP Server. You can click the Browse button to modify the file.
I will explain that the computer I use is a dual network card, and the network card address connecting to the switch is 192.168.1.1. Next I need to set an IP address for the switch, generally, the default port of a layer-2 or layer-3 switch is VLAN 1. Therefore, you can directly set an IP address for VLAN 1. Run the following command: int vlan 1.ip address 192.168.1.254 255.255.255.0.
Step 5: ping 192.168.1.254 on the computer of tftp. If the network is normal, it will be okay. The ability to ping the vswitch from the tftp server indicates that we have prepared for backup of the vswitch data.
Next, in the H3C switch settings, we can use the tftp Command to access the previously created TFTP server, and use the get and put commands to back up and restore data. The tftp Command has four parameters. ascii indicates that files are transmitted in ascii mode, while binary indicates that files are transmitted in binary mode. source-interface is used to set the source interface, for example, tftp source-interface vlan 1, source-ip is used to set the source address, for example, tftp source-ip 192.168.1.254. Then we can access the TFTP server on the vswitch settings for backup and recovery.