This is an useful feature, specially if we want to configure Huawei’s switch, where there are lots of physical interfaces. Very often, some of interfaces have the same configuration. Instead of configure the interfaces one by one it is easier to configure multiple interfaces at the same time. It improves the efficiency.
Let’s assume that you want to add 5 GE interfaces to VLAN 100:
[labnario]port-group labnario [labnario-port-group-labnario]group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/5 [labnario-port-group-labnario]port link-type access [labnario-port-group-labnario]port default vlan 100 [labnario]dis cur | beg port-group port-group labnario group-member GigabitEthernet0/0/1 group-member GigabitEthernet0/0/2 group-member GigabitEthernet0/0/3 group-member GigabitEthernet0/0/4 group-member GigabitEthernet0/0/5
Sometimes we can meet such situation on a router or a switch:
[labnario]display users User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag + 34 VTY 0 00:00:00 TEL 172.29.12.226 pass no Username : huawei 35 VTY 1 00:08:01 TEL 172.29.12.226 pass no Username : labnario 36 VTY 2 00:07:38 TEL 172.29.12.226 pass no Username : killer 37 VTY 3 00:07:00 TEL 172.29.12.226 pass no Username : killer 38 VTY 4 00:01:34 TEL 172.29.12.226 pass no Username : labnario
By default, on Huawei device, there are 5 vty lines available. If all these lines are occupied by users, no other user is able to access the device. Such situation can appear in 2 cases:
- The device is fully occupied by telnet users.
- All telnet sessions are hang.
The first case is normal and it can often happen. Sessions will be deleted when users log out from the device or their sessions’ idle-timeout expires. By default idle-timeout is set to 10 minutes.
24 – the default number of lines on one screen
<NE40E> display current-configuration # sysname NE40E # super password level 1 simple huawei1 super password level 3 simple huawei super password level 15 simple labnario # FTP server enable FTP acl 2000 # info-center source BFD channel 1 log level informational info-center loghost source GigabitEthernet0/0/0 info-center loghost 172.16.20.90 facility local4 # vlan batch 31 to 32 98 100 # hotkey CTRL_U "display ip interface brief" # undo cluster enable # snmp-agent trap type base-trap # load-balance ip-enhance all ---- More ----
In this post I will show you how to disable a notification record which appears always after you type a configuration command. This notification causes your frustration when you want to configure anything on this switch and suddenly you see the following record:
[labnario]interface GigabitEthernet 0/0/1 [labnario-GigabitEthernet0/0/1] Jan 1 2008 00:24:47+01:00 labnario DS/4/DATASYNC_CFGCHANGE:OID 188.8.131.52.4.1.2011.5.25.191.3.1 configurations have been changed. The current change number is 24, the change loop count is 0, and the maximum number of records is 4095.
You have such situation on Huawei S2300, S3300 and S5300 switches if you are logged by the console.
How to cope with it?
You have two ways to do this. The first is to disable it temporarily by the following commands:
<labnario>undo terminal monitor
<labnario>undo terminal trapping
What to do if you forgot console password to Huawei S5300 switch?
I received such question last week. One of readers of this blog forgot console password and he wanted to modify startup configuration file from bootrom menu. His operation failed and there was a notification from the system that there is an “invalid package file!” and “auto-booting failed!”.
There was s5300ei-v100r002c02spc100 software installed in this switch so we can focus just on this software.
In S5300 there are two ways to solve this problem:
- Create configuration file on your PC, upload it to S5300 and modify startup file
- Delete configuration file from S5300 to let it to boot with empty configuration
Let’s start with the first way:
- Create configuration file on your PC. You can use default empty configuration downloaded from another switch
- Start FTP server on your PC
- Upload the configuration file to flash of S5300 from bootrom menu: