1.3. kermit
生活随笔
收集整理的這篇文章主要介紹了
1.3. kermit
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
下載安裝
neo@ubuntu:~$ apt-cache search kermit gkermit - A serial and network communications package modemu - Telnet services for communication programs ckermit - a serial and network communications packageneo@ubuntu:~$ sudo apt-get install ckermit改寫kermit的配置文件/etc/kermit/kermrc
$ sudo vim /etc/kermit/kermrc; This is /etc/kermit/kermrc ; It is executed on startup if ~/.kermrc is not found. ; See "man kermit" and http://www.kermit-project.org/ for details on ; configuring this file, and /etc/kermit/kermrc.full ; for an example of a complex configuration file; If you want to run additional user-specific customisations in ; addition to this file, place them in ~/.mykermrc; Execute user's personal customization file (named in environment var ; CKERMOD or ~/.mykermrc) ;if def \$(CKERMOD) assign _myinit \$(CKERMOD) if not def _myinit assign _myinit \v(home).mykermrcxif exist \m(_myinit) { ; If it exists,echo Executing \m(_myinit)... ; print message,take \m(_myinit) ; and TAKE the file. }set line /dev/ttyS0 set speed 9600 set carrier-watch off set handshake none set flow-control none robust set file type bin set file name lit set rec pack 1000 set send pack 1000 set window 5console
$ kermitC-Kermit> C-Kermit>connect現(xiàn)在就已經(jīng)成功連接到串口com1了,并且你可以看到cisco console信息
切換
按下 Ctrl + \, 再按c可以跳回kermit
C-Kermit>此時(shí)輸入c,即connect即可連接到串口
neo@ubuntu:~$ kermit C-Kermit 8.0.211, 10 Apr 2004, for LinuxCopyright (C) 1985, 2004,Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/home/neo/) C-Kermit>c Connecting to /dev/ttyS0, speed 9600Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ----------------------------------------------------Switch>接下來(lái)你就可以配置交換機(jī)了
Switch>en Password: Switch#show running-config Building configuration...Current configuration : 3265 bytes ! version 12.2 no service pad service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Switch ! boot-start-marker boot-end-marker ! enable secret 5 $1$zQct$RlZjEVk3PV//OrS4KYm46. enable password 123456 ! no aaa new-model system mtu routing 1500 ip subnet-zero ! no ip dhcp snooping information option !--More--
原文出處:Netkiller 系列 手札
本文作者:陳景峯
轉(zhuǎn)載請(qǐng)與作者聯(lián)系,同時(shí)請(qǐng)務(wù)必標(biāo)明文章原始出處和作者信息及本聲明。
總結(jié)
以上是生活随笔為你收集整理的1.3. kermit的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 优酷app怎么切换账号(优酷客户端下载中
- 下一篇: MySql语句查询优化