特殊:Badtitle/NS100:CiscoConsole:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/CiscoConsole}} {{Languages|UbuntuHelp:CiscoConsole}} == Introduction == People who work with Cisco network equipment need to be able to connect... |
小无编辑摘要 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/CiscoConsole}} | {{From|https://help.ubuntu.com/community/CiscoConsole}} | ||
{{Languages|UbuntuHelp:CiscoConsole}} | {{Languages|UbuntuHelp:CiscoConsole}} | ||
== Introduction == | == Introduction == | ||
People who work with Cisco network equipment need to be able to connect to the console port on their devices. In Windows, you can simply fire up HyperTerminal to get basic access to your devices. If you are using Linux, then you need to know how this can be done with an application called Minicom. | People who work with Cisco network equipment need to be able to connect to the console port on their devices. In Windows, you can simply fire up HyperTerminal to get basic access to your devices. If you are using Linux, then you need to know how this can be done with an application called Minicom. | ||
== Hardware == | == Hardware == | ||
First, you are going to need a Cisco console cable, a Cisco device, and a computer. If your computer has a serial port, then you can use the standard console cable that comes with every Cisco device. | First, you are going to need a Cisco console cable, a Cisco device, and a computer. If your computer has a serial port, then you can use the standard console cable that comes with every Cisco device. | ||
If you do not have a serial port (like most new laptops), then you need to purchase a USB to Serial adapter that supports Linux. This device will allow you to use the standard Cisco cable, which has a serial port on one end. | If you do not have a serial port (like most new laptops), then you need to purchase a USB to Serial adapter that supports Linux. This device will allow you to use the standard Cisco cable, which has a serial port on one end. | ||
== Install Minicom == | == Install Minicom == | ||
You can easily install Minicom by using "System > Administration > Synaptic Package Manager". Search for "minicom" and choose to install the package. Click "Apply" and Minicom should be installed within a few seconds. | You can easily install Minicom by using "System > Administration > Synaptic Package Manager". Search for "minicom" and choose to install the package. Click "Apply" and Minicom should be installed within a few seconds. | ||
== Find the name of your serial port == | == Find the name of your serial port == | ||
Next, you need to find out is which device your serial port is mapped to. The easiest way to do this is to connect the console cable to a running Cisco device. Now open up a Terminal using "Applications > Accessories > Terminal" and type this command: | Next, you need to find out is which device your serial port is mapped to. The easiest way to do this is to connect the console cable to a running Cisco device. Now open up a Terminal using "Applications > Accessories > Terminal" and type this command: | ||
'''dmesg | grep tty''' | '''dmesg | grep tty''' | ||
The output will look something like this: | The output will look something like this: | ||
Look in this output for words that contain "tty". In this case, it is "ttyS0". That meas the name of the device the corresponds to your serial port is "ttyS0". Now we are ready to configure Minicom to use this information. | Look in this output for words that contain "tty". In this case, it is "ttyS0". That meas the name of the device the corresponds to your serial port is "ttyS0". Now we are ready to configure Minicom to use this information. | ||
== Configure Minicom == | == Configure Minicom == | ||
Open a terminal using "Applications > Accessories > Terminal". Now type this command to enter the configuration menu of Minicom: | Open a terminal using "Applications > Accessories > Terminal". Now type this command to enter the configuration menu of Minicom: | ||
'''sudo minicom -s''' | '''sudo minicom -s''' | ||
Use the keyboard arrow keys to select the menu item labeled "Serial Port Setup" and then hit "Enter". This will open a window that looks similar to the one below: | Use the keyboard arrow keys to select the menu item labeled "Serial Port Setup" and then hit "Enter". This will open a window that looks similar to the one below: | ||
Change your settings to match the ones in the picture above. Here is what I had to change: | Change your settings to match the ones in the picture above. Here is what I had to change: | ||
* Change the line speed (press E) to "9600" | |||
* Change the hardware flow control (press F) to "No" | |||
* Change the serial device (press A) to "/dev/ttyS0" | |||
** Be sure to use the device name that you learned in the previous step | |||
* Be sure to use the device name that you learned in the previous step | |||
Once your screen looks like mine, you can hit "Escape" to go back to the main menu. Next, you need to select "Save setup as dfl" and hit "Enter" to save these settings to the default profile. Then select "Exit Minicom" to exit Minicom... ;) | Once your screen looks like mine, you can hit "Escape" to go back to the main menu. Next, you need to select "Save setup as dfl" and hit "Enter" to save these settings to the default profile. Then select "Exit Minicom" to exit Minicom... ;) | ||
To find out if you have configured Minicom correctly, type this command in the terminal: | To find out if you have configured Minicom correctly, type this command in the terminal: | ||
'''sudo minicom''' | '''sudo minicom''' | ||
After entering your Ubuntu user password, you should be connected to your Cisco device. | After entering your Ubuntu user password, you should be connected to your Cisco device. | ||
Note: You may want to delete the Minicom init string if you see a bunch of gibberish every time you connect to a device. To do this, enter Minicom configuration with: | Note: You may want to delete the Minicom init string if you see a bunch of gibberish every time you connect to a device. To do this, enter Minicom configuration with: | ||
'''sudo minicom -s''' | '''sudo minicom -s''' | ||
Then select "Modem and dialing". Press "A" to edit the Init string, and delete all characters so that it becomes empty. Make sure you save this to the default profile with "Save setup as dfl". You should no longer see gibberish when you connect to devices. | Then select "Modem and dialing". Press "A" to edit the Init string, and delete all characters so that it becomes empty. Make sure you save this to the default profile with "Save setup as dfl". You should no longer see gibberish when you connect to devices. | ||
== Create a desktop launcher == | == Create a desktop launcher == | ||
If you want to have quicker access to Minicom, you can create a desktop launcher. | If you want to have quicker access to Minicom, you can create a desktop launcher. | ||
# Right-click on the desktop and choose "Create launcher" | |||
2. Click on "Icon" and choose the picture you want to use | |||
3. Use the "Type" pull-down menu and select "Application in terminal" | |||
4. Create a name like "Cisco Console" in the field labeled "Name" | |||
5. Enter this command into the field labeled "Command" | |||
* sudo minicom | * sudo minicom | ||
6. Hit "OK" and your desktop launcher is ready for you to use. | |||
== References == | == References == | ||
[http://useopensource.blogspot.com/2007/01/using-cisco-console-in-linux.html Using the Cisco console in Linux] | [http://useopensource.blogspot.com/2007/01/using-cisco-console-in-linux.html Using the Cisco console in Linux] | ||
---- | ---- | ||
[[category:CategoryDocumentation]] | [[category:CategoryDocumentation]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 16:28的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CiscoConsole }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/af | • {{#if: UbuntuHelp:CiscoConsole|Afrikaans| [[::CiscoConsole/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ar | • {{#if: UbuntuHelp:CiscoConsole|العربية| [[::CiscoConsole/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/az | • {{#if: UbuntuHelp:CiscoConsole|azərbaycanca| [[::CiscoConsole/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/bcc | • {{#if: UbuntuHelp:CiscoConsole|جهلسری بلوچی| [[::CiscoConsole/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/bg | • {{#if: UbuntuHelp:CiscoConsole|български| [[::CiscoConsole/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/br | • {{#if: UbuntuHelp:CiscoConsole|brezhoneg| [[::CiscoConsole/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ca | • {{#if: UbuntuHelp:CiscoConsole|català| [[::CiscoConsole/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/cs | • {{#if: UbuntuHelp:CiscoConsole|čeština| [[::CiscoConsole/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/de | • {{#if: UbuntuHelp:CiscoConsole|Deutsch| [[::CiscoConsole/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/el | • {{#if: UbuntuHelp:CiscoConsole|Ελληνικά| [[::CiscoConsole/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/es | • {{#if: UbuntuHelp:CiscoConsole|español| [[::CiscoConsole/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/fa | • {{#if: UbuntuHelp:CiscoConsole|فارسی| [[::CiscoConsole/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/fi | • {{#if: UbuntuHelp:CiscoConsole|suomi| [[::CiscoConsole/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/fr | • {{#if: UbuntuHelp:CiscoConsole|français| [[::CiscoConsole/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/gu | • {{#if: UbuntuHelp:CiscoConsole|ગુજરાતી| [[::CiscoConsole/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/he | • {{#if: UbuntuHelp:CiscoConsole|עברית| [[::CiscoConsole/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/hu | • {{#if: UbuntuHelp:CiscoConsole|magyar| [[::CiscoConsole/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/id | • {{#if: UbuntuHelp:CiscoConsole|Bahasa Indonesia| [[::CiscoConsole/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/it | • {{#if: UbuntuHelp:CiscoConsole|italiano| [[::CiscoConsole/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ja | • {{#if: UbuntuHelp:CiscoConsole|日本語| [[::CiscoConsole/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ko | • {{#if: UbuntuHelp:CiscoConsole|한국어| [[::CiscoConsole/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ksh | • {{#if: UbuntuHelp:CiscoConsole|Ripoarisch| [[::CiscoConsole/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/mr | • {{#if: UbuntuHelp:CiscoConsole|मराठी| [[::CiscoConsole/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ms | • {{#if: UbuntuHelp:CiscoConsole|Bahasa Melayu| [[::CiscoConsole/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/nl | • {{#if: UbuntuHelp:CiscoConsole|Nederlands| [[::CiscoConsole/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/no | • {{#if: UbuntuHelp:CiscoConsole|norsk| [[::CiscoConsole/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/oc | • {{#if: UbuntuHelp:CiscoConsole|occitan| [[::CiscoConsole/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/pl | • {{#if: UbuntuHelp:CiscoConsole|polski| [[::CiscoConsole/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/pt | • {{#if: UbuntuHelp:CiscoConsole|português| [[::CiscoConsole/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ro | • {{#if: UbuntuHelp:CiscoConsole|română| [[::CiscoConsole/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/ru | • {{#if: UbuntuHelp:CiscoConsole|русский| [[::CiscoConsole/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/si | • {{#if: UbuntuHelp:CiscoConsole|සිංහල| [[::CiscoConsole/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/sq | • {{#if: UbuntuHelp:CiscoConsole|shqip| [[::CiscoConsole/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/sr | • {{#if: UbuntuHelp:CiscoConsole|српски / srpski| [[::CiscoConsole/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/sv | • {{#if: UbuntuHelp:CiscoConsole|svenska| [[::CiscoConsole/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/th | • {{#if: UbuntuHelp:CiscoConsole|ไทย| [[::CiscoConsole/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/tr | • {{#if: UbuntuHelp:CiscoConsole|Türkçe| [[::CiscoConsole/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/vi | • {{#if: UbuntuHelp:CiscoConsole|Tiếng Việt| [[::CiscoConsole/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/yue | • {{#if: UbuntuHelp:CiscoConsole|粵語| [[::CiscoConsole/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/zh | • {{#if: UbuntuHelp:CiscoConsole|中文| [[::CiscoConsole/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/zh-hans | • {{#if: UbuntuHelp:CiscoConsole|中文(简体)| [[::CiscoConsole/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CiscoConsole | UbuntuHelp:CiscoConsole | {{#if: | :}}CiscoConsole}}/zh-hant | • {{#if: UbuntuHelp:CiscoConsole|中文(繁體)| [[::CiscoConsole/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CiscoConsole|:CiscoConsole|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CiscoConsole/zh | | {{#ifexist: CiscoConsole/zh | | {{#ifeq: {{#titleparts:CiscoConsole|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CiscoConsole|1|-1|}} | zh | | }}
Introduction
People who work with Cisco network equipment need to be able to connect to the console port on their devices. In Windows, you can simply fire up HyperTerminal to get basic access to your devices. If you are using Linux, then you need to know how this can be done with an application called Minicom.
Hardware
First, you are going to need a Cisco console cable, a Cisco device, and a computer. If your computer has a serial port, then you can use the standard console cable that comes with every Cisco device. If you do not have a serial port (like most new laptops), then you need to purchase a USB to Serial adapter that supports Linux. This device will allow you to use the standard Cisco cable, which has a serial port on one end.
Install Minicom
You can easily install Minicom by using "System > Administration > Synaptic Package Manager". Search for "minicom" and choose to install the package. Click "Apply" and Minicom should be installed within a few seconds.
Find the name of your serial port
Next, you need to find out is which device your serial port is mapped to. The easiest way to do this is to connect the console cable to a running Cisco device. Now open up a Terminal using "Applications > Accessories > Terminal" and type this command: dmesg | grep tty The output will look something like this: Look in this output for words that contain "tty". In this case, it is "ttyS0". That meas the name of the device the corresponds to your serial port is "ttyS0". Now we are ready to configure Minicom to use this information.
Configure Minicom
Open a terminal using "Applications > Accessories > Terminal". Now type this command to enter the configuration menu of Minicom: sudo minicom -s Use the keyboard arrow keys to select the menu item labeled "Serial Port Setup" and then hit "Enter". This will open a window that looks similar to the one below: Change your settings to match the ones in the picture above. Here is what I had to change:
- Change the line speed (press E) to "9600"
- Change the hardware flow control (press F) to "No"
- Change the serial device (press A) to "/dev/ttyS0"
- Be sure to use the device name that you learned in the previous step
Once your screen looks like mine, you can hit "Escape" to go back to the main menu. Next, you need to select "Save setup as dfl" and hit "Enter" to save these settings to the default profile. Then select "Exit Minicom" to exit Minicom... ;) To find out if you have configured Minicom correctly, type this command in the terminal: sudo minicom After entering your Ubuntu user password, you should be connected to your Cisco device. Note: You may want to delete the Minicom init string if you see a bunch of gibberish every time you connect to a device. To do this, enter Minicom configuration with: sudo minicom -s Then select "Modem and dialing". Press "A" to edit the Init string, and delete all characters so that it becomes empty. Make sure you save this to the default profile with "Save setup as dfl". You should no longer see gibberish when you connect to devices.
Create a desktop launcher
If you want to have quicker access to Minicom, you can create a desktop launcher.
- Right-click on the desktop and choose "Create launcher"
2. Click on "Icon" and choose the picture you want to use 3. Use the "Type" pull-down menu and select "Application in terminal" 4. Create a name like "Cisco Console" in the field labeled "Name" 5. Enter this command into the field labeled "Command"
- sudo minicom
6. Hit "OK" and your desktop launcher is ready for you to use.
References
Using the Cisco console in Linux