Linux systems Configure switches through COM ports

Source: Internet
Author: User
Tags clear screen i18n switches

1, the Linux server configuration switch environment

A, remotely connect to a Linux server over a network or use a Linux server locally, connect a Linux server's COM port to the console port of the switch, and install the Minicom software configuration switch on a Linux server.

b, if the minicom is not installed, the Yum installation method is as follows:

Yum install-y minicom installs COM serial communication tools, similar to the Windows system HyperTerminal.

The installation is complete and configuration is required to use minicom to configure the switch via COM port;

2. Configure minicom Software

A, before the configuration check

[[Email protected]_server ~]# ll/dev/ttys* display serial full path

CRW-RW----1 root dialout 4, Jul 2717:56/DEV/TTYS0

CRW-RW----1 root dialout 4, 2701:10/dev/ttys1

CRW-RW----1 root dialout 4, 01:10/dev/ttys2

CRW-RW----1 root dialout 4, 2701:10/dev/ttys3 Jul

[[Email protected]_server ~]# dmesg | grepttys* perform this command check

console [TTY0] enabled

Serial8250:ttys0 at I/o 0x3f8 (IRQ = 4) is a 16550A check to linux COM 0 port to recognize that the console line is connected

00:03:ttys0 at I/o 0x3f8 (IRQ = 4) is a16550a

B, minicom configuration as follows

Execute command:minicom–s Edit the serial communication tool so that Linux can configure the switch via COM port

+-----[Configuration]------+

| Filenames and Paths |

| File Transfer Protocols |

|       Serial Portsetup | Select this entry to enter

| Modem and Dialing |

| Screen and keyboard |

| Save Setup as DFL |

|          Save setup as. |

| Exit |

| Exit from Minicom |

+--------------------------+

+-----------------------------------------------------------------------+

|    A-serial Device:/dev/ttys0 | Change this to a recognized COM port path

| B-lockfile Location:/var/lock |

| C-callin Program: |

| D-callout Program: |

  |  e-bps/par/bits:9600 8N1 | the baud rate identified by this switch is 9600

 |      F-hardware Flow Control:no | Change this item to no

| G-software Flow Control:no |

|

|                 Change which setting?          | Enter Save to exit

+-----------------------------------------------------------------------+

+-----[Configuration]------+

| Filenames and Paths |

| File Transfer Protocols |

| Serial Port Setup |

 |        Modem anddialing | Select this to enter the following screen

| Screen and keyboard |

| Save Setup as DFL |

|          Save setup as. |

| Exit |

| Exit from Minicom |

+--------------------------+

Set the use of commands during the process, such as the need to modify the value of option A, in the change with setting? Option after entering a after the cursor is transferred to the A option, you can modify the value of the A option.

+--------------------[Modem and Dialingparameter Setup]---------------------+

| |

|                      A-init string ... | Clear this value

|                 B-reset string ... | Clear this value

|                     c-dialing prefix #1 .... |

| d-dialing suffix #1 .... ^m |

| e-dialing prefix #2 .... ATDP |

| f-dialing suffix #2 .... ^m |

| g-dialing prefix #3 .... Atx1dt |

| h-dialing suffix #3 .... ; X4d^m |

| I-connect string ... CONNECT |

| J-no connect strings. NO CARRIER BUSY |

| NO Dialtone VOICE |

 |       K-hang-up string ... | Clear this value

| L-dial Cancel String: ^m |

| |

| M-dial time ...... q-autobps detect ..... No |

| N-delay before redial. 2 R-modemhas DCD Line. Yes |

| O-number of tries ..... Ten S-status line shows ... DTE Speed |

| P-DTR drop Time (0=no). 1 T-multi-line untag .... No |

| |

|       Change which setting? (Return Oresc to exit) |

+----------------------------------------------------------------------------+


+-----[Configuration]------+

| Filenames and Paths |

| File Transfer Protocols |

| Serial Port Setup |

| Modem and Dialing |

| Screen and keyboard |

|             Save Setup ASDFL | Select this option to save the configuration

|          Save setup as. |

| Exit |

 |       Exit fromminicom | Select this option to exit the Minicom configuration interface

+--------------------------+

Select Save As DF1.

Select the Save As DF1 option to save the modified configuration information as the default configuration option.

Exit from Minicom.

Select the exit from Minicom option to return to the command line from the configuration menu.

input Minicom You can configure the switch.

Use minicom boot minicom to connect the router via serial port under Linux, and realize the function of HyperTerminal.

# minicom can enter the

Welcome to Minicom 2.3

options:i18n

Compiled on 19 2010, 05:50:19.

Port/dev/ttys0

Press Ctrl-a Z for help onspecial keys

<H3C> Here is the interface for configuring the switch .

#Apr 05:34:09:611 H3cshell/4/login:

Trap1.3.6.1.4.1.25506.2.2.1.1.3.0.1

%APR 05:34:09:750 h3cshell/5/shell_login:console logged in from aux0.

After the configuration is complete, you want to save the exit; Press the CTRL + a key and then press the Z key to enter the following interface:

-------------------------------------------------------------------

Minicom commandsummary

Commands can called by Ctrl-a <key>

Main Functions Other Functions

Dialing directory: D Run script (Go) .... G | Clear screen .... C

Sendfiles ..... S receivefiles ... R | Configureminicom. O

Commparameters .... P addlinefeed ..... A | Suspend minicom .... J

Capture on/off ..... L hangup ....... H | eXit andreset ..... X

Sendbreak ..... F Initializemodem ... M | Quit with no reset. Q

Terminal settings. T run Kermit ..... K | Cursor key mode .... I

Linewrap on/off .... W local Echo on/off. E | Help screen ..... Z

Paste file ..... Y | Scroll back ... B

Select function or press Enter for none.

Written by Miquel van Smoorenburg 1991-1995

Some additions by Jukka Lahtinen 1997-2000

i18n by Arnaldo Carvalho de Melo 1998

Then press the keyboard x key to display the following

----------------------+

Leave Minicom? |

Yes No |

----------------------+

Select Yes to exit the Minicom configuration interface




This article is from the "11904838" blog, please be sure to keep this source http://11914838.blog.51cto.com/11904838/1844426

Linux systems Configure switches through COM ports

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.