For the new switch S1720 you can press on
reset button for 30sec after that you can use the default ip address
User name: admin
Password: admin@huawei.com
Login IP address: 192.168.1.253
For old switches if you can’t login using webpage you can use
console cable you can check from here
, you can also configure through mini usb from here