Home | Mirror | Search |
下載安裝
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 package neo@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).mykermrc xif 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
$ kermit C-Kermit> C-Kermit>connect
現在就已經成功連接到串口com1了,並且你可以看到cisco console信息
切換
按下 Ctrl + \, 再按c可以跳回kermit
C-Kermit>
此時輸入c,即connect即可連接到串口
neo@ubuntu:~$ kermit C-Kermit 8.0.211, 10 Apr 2004, for Linux Copyright (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 9600 Escape character: Ctrl-\ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options. ---------------------------------------------------- Switch>
接下來你就可以配置交換機了
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--