现在的位置: 首页 > 综合 > 正文

使用Minicom连接交换机/路由器

2013年12月02日 ⁄ 综合 ⁄ 共 3896字 ⁄ 字号 评论关闭

一、安装

yum install -y minicom

 

二、配置

minicom -s

            +-----[configuration]------+
            | Filenames and paths      |
            | File transfer protocols    |
            | Serial port setup            |
            | Modem and dialing         |
            | Screen and keyboard     |
            | Save setup as dfl           |
            | Save setup as..              |
            | Exit                               |
            | Exit from Minicom          |
            +--------------------------+

 

选择 “Serial port setup ”

    +-----------------------------------------------------------------------+
    | A -    Serial Device      : /dev/modem                                             |
    | B - Lockfile Location     : /var/lock                                                  |
    | C -   Callin Program      :                                                                |
    | D -  Callout Program      :                                                               |
    | E -    Bps/Par/Bits       : 38400 8N1                                               |
    | F - Hardware Flow Control : Yes                                                    |
    | G - Software Flow Control : No                                                      |
    |                                                                                                     |
    |    Change which setting?                                                                |
    +-----------------------------------------------------------------------+

 

需要更改二项:

A -    Serial Device : 改为/dev/ttyS0

E -    Bps/Par/Bits : 改为9600 8N1

 

修改后之后,按ESC键返回到之前的菜单,选择“Save setup as...”,输入配置文件名,比如“switch_01”

                                                                          
            +-----[configuration]------+                                    
            | Filen      +-----------------------------------------+              
            | File        |Give name to save this configuration?  |              
            | Seria     |> switch_01                                        |              
            | Modem +-----------------------------------------+              
            | Screen and keyboard      |
            | Save setup as dfl            |
            | Save setup as..              |
            | Exit                                |
            | Exit from Minicom          |
            +--------------------------+

 

然后选择Exit退出。

 

三、使用

minicom switch_01,回车,即可进入交换机操作界面

 

Welcome to minicom 2.1

OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jan  7 2007, 04:48:39.

Press CTRL-A Z for help on special keys
                                                           +----------------------+
                                                            |    Leave Minicom?    |
qoolu_lan>AT S7=45 S0=0 L1 V1         |     Yes       No          |
           ^                                              +----------------------+
% Invalid input detected at '^' marker.                                                
lan_switch>?                            
Exec commands:                         
  access-enable    Create a temporary Access-List entry
  clear            Reset functions     
  connect          Open a terminal connection
  crypto           Encryption related commands.
  disable          Turn off privileged commands
  disconnect       Disconnect an existing network connection
  enable           Turn on privileged commands
  exit             Exit from the EXEC
  help             Description of the interactive help system
  lock             Lock the terminal
  login            Log in as a particular user
  logout           Exit from the EXEC
  name-connection  Name an existing network connection
  ping             Send echo messages
  rcommand         Run command on remote switch
  resume           Resume an active network connection
  set              Set system parameter (not config)
  show             Show running system information
  ssh              Open a secure shell client connection
  systat           Display information about terminal lines
  telnet           Open a telnet connection
 --More--

 

 

 

 

 

 

 

 

 

 

 CTRL-A Z for help |  9600 8N1 | NOR | Minicom 2.1    | VT102 |      Offline 

 

按Ctrl+A,然后按X键,输入“yes”即可退出。

 

抱歉!评论已关闭.