Under Debian, minicom management switch

Source: Internet
Author: User
Tags uppercase character

Today, the company broke the switch, called the engine room replaced on standby, backup switch management IP, was accidentally cleaned by colleagues, can not be remote, wipe.


Call the machine room to connect the console port to the server and install the mimicom

#apt-get Install minicom

Configuration:

#minicom-S

Pop-up menu-select "Serial Port Setup" to enter level two menu, the first uppercase character of each option, you can set the item by that letter, my settings are as follows:

A-serial Device:/DEV/TTYS0 # My machine has only one serial port, so it's 0.

B-lockfile Location:/var/lock #lockfile Path Default
C-callin Program:
D-callout Program:
e-bps/par/bits:9600 8N1 #set baud rate 9600
F-hardware Flow Control:no #Turn off hardware flow control

G-software Flow Control:no # Turn off software flow control

after Setup is complete, type enter

After the setup is complete, select Save Setup asDFL and choose "Exit from Minicom" to exit


#minicom #进入minicom, it's already connected to the switch (H3C 5024).

[H3c]interface vlan-interface 1 #进入vlan 1

[H3c-vlan-interface1]ip address 192.168.41.233 255.255.255.0 #设置远程ip, the previous account password is still in, so do not set the remote user password

[H3c-vlan-interface1]quit #退出

[H3c]quit

Is you sure? [Y/n]y #保存

Press CTRL + A and press Q again to exit minicom


Setting the network Clamp interface eth1:1 #此交换机接口为eth1

#vim/etc/network/interfaces #添加如下内容

Auto Eth1:1

Iface eth1:1 inet Static

Address 192.168.41.254

Netmask 255.255.255.0

#ifdown eth1:1 && ifup eth1:1 #重启网卡

#telnet 192.168.41.233 #已经可以登录了



This article is from the "Running Snail" blog, please make sure to keep this source http://guoniu.blog.51cto.com/9315436/1774839

Under Debian, minicom management switch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.