日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

1.3. kermit

發(fā)布時(shí)間:2023/12/31 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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 5

console

$ 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)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。