Cisco console linux usb

Zone PC

Подключение к Cisco из Linux и FreeBSD

Настройка различных коммутаторов, маршрутизаторов и другого оборудования обычно производится через последовательный COM порт (RS232). Вначале нужно найти и соединить подходящим консольным кабелем компьютер и коммутатор (через COM-порт или USB переходник) компьютер. В этой статье посмотрим как производить настройку в ОС Linux.

Настройка через minicom

В первую очередь нужно найти в документации к оборудованию настройки консольного com порта. Для подключения под linux необходимо поставить программу minicom. Поставим из пакета под Debian (ubuntu):

Чтобы minicom увидел Сisco его необходимо правильно настроить запускаем с ключом:

Заходим в настройку последовательного порта (Serial port setup) и меняем значения Скорость/Четность/Биты (Bps/Par/Bits) на 9600 8N1.

Меняем последовательный порт (Serial Device) на порт, к которому подключено оборудование и настраиваем параметры управления потоком(Flow Control). В данном примере это /dev/ttyS0 — адрес порта COM1. При подключении через разъем mini-usb порт может быть таким /dev/ttyACM0.

Справку по командам можно получить нажав Ctrl+A затем Z.

В итоге получаем стандартные настройки для Cisco и HP procurve:

Сохраняем конфигурацию, как настройки по-умолчанию в главном меню minicom (Save setup as dfl), либо как конфигурацию с конкретным названием ( Save setup as..).

Для выхода из minicom необходимо нажать Ctrl+A затем Q.

Далее запускаем minicom с настройками по-умолчанию.

Либо с сохранными настройками.

А это пример настроек для свитчей 3com(hp) 4210 и 4500

Устройство /dev/ttyUSB0 обычно используется при подключении через переходник usb->com. Скорость 19200 иногда 115200 используется на свитчах 3COM (теперь уже HP) причем любую другую скорость они не понимают. Так что перед подключением нужно внимательно читать в документации какие скорости и контроль потока нужно выставлять. Однако иногда параметры подключения пишут прямо на устройстве рядом с консольным портом.

Настройки через утилиту cu

Можно подключиться к консоли командой

Если не задать права chown на файл устройства то можно получить сообщение:

Главное достоинство утилитки cu что она одинаково хорошо работает под linux и под freebsd только названия устройств отличаются.

На freebsd получится так:

Единственное нужно правильно выбрать файл устройства куда подключено устройство.

Источник

Cisco 1240 Connected Grid Router Hardware Installation Guide

Book Title

Cisco 1240 Connected Grid Router Hardware Installation Guide

Chapter Title

Appendix — Starting a Router Terminal or Console Session

View with Adobe Reader on a variety of devices

Results

Chapter: Appendix — Starting a Router Terminal or Console Session

Starting a Router Terminal Session

This section describes how to start a terminal session with the Cisco 1240 Connected Grid Router (CGR 1240 or router) using the console port. Start a terminal session with the router when you are at the router installation location and want to administer the router with a direct connection using the command-line interface (CLI) software.

Читайте также:  Создание графического файла windows

These topics are discussed:

About the Console Port

Connecting to the Console Port with Microsoft Windows

Connecting to the Console Port with Mac OS X

Connecting to the Console Port with Linux

Before You Begin

Before you start a terminal session with the router, you must connect a PC or PC terminal to the router console port by following the instructions in Connecting the Console Port.

About the Console Port

Caution: The console port does not support cable glands. When a cable is connected to this port, the router interior is exposed to environmental elements, which can damage the port and the router interior. This port should be exposed only during terminal sessions, when a cable is connected to the port. This port should never be left unattended when in use.

The console port is an asynchronous serial port that allows you to connect to the device for initial configuration through a standard RS-232 port with an RJ-45 connector. Any device connected to this port must be capable of asynchronous transmission.

Console Port Settings

Configure the following parameters for the console port:

Specifies the transmission speed for the connection.

Specifies the number of bits in an 8-bit byte that is used for data.

Specifies the odd or even parity for error detection.

Specifies the stop bits for an asynchronous line.

Using the Ctrl-C Command

The router console port is located on the router exterior and is accessible by removing the seal over the console port (see Console Port).

On many Cisco routers, you can enter Ctrl-C to interrupt the router startup process and then delete or change the admin password, or view or delete the router configuration.

To prevent unauthorized access to the router configurations and passwords, the Ctrl-C command is disabled on the Cisco CGR 1240 Router while it is booting up and loading the system software.

Connecting to the Console Port with Microsoft Windows

To connect to the router console port using Microsoft Windows:

1. Start a terminal emulator application, such as Windows HyperTerminal (included with some versions of Windows OS) or PuTTY .

2. Configure the terminal emulation software with the parameters described in About the Console Port.

3. Connect to the router.

Connecting to the Console Port with Mac OS X

To connect a Mac OS X system USB port to the console using the built-in OS X Terminal utility:

1. Use the Finder to go to Applications > Utilities > Terminal.

2. Connect the OS X USB port to the router.

3. Enter the following commands to find the OS X USB port number:

macbook:user$ cd /dev macbook:user$ ls -ltr /dev/*usb* crw-rw-rw- 1 root wheel 9, 66 Apr 1 16:46 tty.usbmodem1a21
DT-macbook:dev user$

4. Connect to the USB port with the following command followed by the router USB port speed:

macbook:user$ screen /dev/tty.usbmodem1a21 9600

To Disconnect the OS X USB Console from the Terminal Window

Enter Ctrl+A followed by Ctrl+\

Connecting to the Console Port with Linux

To connect a Linux system USB port to the console using the built-in Linux Terminal utility:

1. Open the Linux Terminal window.

2. Connect the Linux USB port to the router.

3. Enter the following commands to find the Linux USB port number:

root@usb-suse# cd /dev root@usb-suse /dev# ls -ltr *ACM* crw-r—r— 1 root root 188, 0 Jan 14 18:02 ttyACM0 root@usb-suse /dev#

4. Connect to the USB port with the following command followed by the router USB port speed:

root@usb-suse /dev# screen /dev/ttyACM0 9600

To Disconnect the Linux USB Console from the Terminal Window

Enter Ctrl+A followed by :, and then type quit.

Источник

Cable Connection Procedures

Available Languages

Download Options

Table Of Contents

Cable Connection Procedures for Cisco 1900 Series Routers

This document describes how to connect your Cisco 1941 integrated services router to a power source and to networks and external devices. It includes the following sections:

Power Connections

Connecting WAN and LAN Cables

Connecting to a Console Terminal or Modem

Note To see translations of the warnings that appear in this publication, refer to the Regulatory Compliance and Safety Information for Cisco 1900 Series Routers document .

Power Connections

Parameter Console Port Setting Description
Warning Read the installation instructions before connecting the system to the power source. Statement 1004.

Note The installation must comply with all required electrical codes applicable at the installation site.

Connect your router to a 15 A, 120 VAC (10 A, 240 VAC) circuit with over current protection.

Note The input voltage tolerance limits for AC power are 85 and 264 VAC.

Warning This product relies on the building’s installation for short-circuit (over current) protection. Ensure that the protective device is rated not greater than: 15A, 120VAC (10A, 240VAC). Statement 1005

Connecting WAN and LAN Cables

This section describes how to connect the WAN and LAN interface cables. It includes the following sections:

Ports and Cabling

Connection Procedures and Precautions

Note You can order additional network connection cables and transceivers from Cisco. For ordering information, contact Cisco customer service. For cable pinouts, refer to the Cisco Modular Access Router Cable Specifications document, which is available online.

Warning Do not work on the system, or connect or disconnect cables during periods of lightning activity. Statement 1001

Ports and Cabling

Table 5-1 summarizes some typical WAN and LAN connections for Cisco 1941 routers.

The connections summarized in Table 5-1 are also described in detail in the following documents:

Cisco Modular Access Router Cable Specifications

Table 5-1 WAN and LAN Connections

Gigabit Ethernet (GE)

Ethernet switch or hub.

Crossover to connect to a router

Straight-through to connect to a switch

T1 or E1 network or CSU/DSU.

RJ-48 T1/E1 straight-through (Crossover to connect to a PBX or any other equipment)

Cisco serial (1T)

60-pin D-sub, blue

CSU/DSU and serial
network or equipment.

Cisco serial transition cable that matches the signaling protocol (EIA/TIA-232, EIA/TIA-449, V.35, X.21, or EIA/TIA-530) and the serial port operating mode (DTE or DCE).

Refer to the Cisco Modular Access Router Cable Specifications document for information about selecting these cables.

Cisco Smart serial (2T)

Cisco Smart compact connector, blue

CSU/DSU and serial
network or equipment.

For WIC-2T and WIC-2A/S only.

Network demarcation
device for service provider’s
DSL interface.

RJ-11 straight-through for 2-wire

RJ-14 straight-through for 4-wire

BRI S/T WAN
(external NT1 2 )

NT1 device or PINX 3

BRI U WAN
(built-in NT1)

1 The color codes are specific to cables shipped by Cisco

2 NT1 = Network Termination 1

3 PINX = Private integrated network exchange

Connection Procedures and Precautions

Connect each WAN and LAN cable to the appropriate connector on the chassis or interface card.

Position the cables carefully, so that they do not put strain on the connectors.

Organize the cables in bundles so that cables do not intertwine.

Inspect the cables to make sure that the routing and bend radiuses are satisfactory. Reposition the cables, if necessary.

Install cable ties in accordance with your site requirements.

For cable pinouts, refer to the online document Cisco Modular Access Router Cable Specifications .

Connecting to a Console Terminal or Modem

Your router has asynchronous serial, USB, console and auxiliary ports. These ports provide administrative access to your router either locally (with a console terminal or PC) or remotely (with a modem).

The following cables and adapters may be used for connecting your router to a console terminal, PC, or modem:

USB Console cable—USB 5-pin mini Type-B to USB Type-A. See «USB Serial Console» section for port details and «Specifications» section.

Console cable— EIA RJ-45 to DB-9

Modem adapter—DB-9 to DB-25

Note The first time a Windows based PC is connected to the router, a USB device driver must be installed. See Installing the Cisco Microsoft Windows USB Device Driver.

This section describes how to connect a console terminal or PC to the console port and how to connect a modem to the auxiliary port.

Connecting to the Console Port with Microsoft Windows

To configure the router through the Cisco IOS command-line interface (CLI), you must connect the router console port to a terminal or PC. See «Console and Auxiliary Port Considerations» section.

A Microsoft Windows PC must have HyperTerminal or similar terminal emulation software installed. The software should be configured with the following parameters: 9600 baud, 8 data bits, no parity, 1 stop bit, and no flow control. Refer to the Cisco 3900 Series, 2900 Series, and 1900 Series Software Configuration Guide for detailed information about using Cisco IOS software for configuring the router.

To connect the router to a terminal or PC, follow these steps:

Step 1 Connect the end of the console cable with the RJ-45 connector to the light blue console port on the router, or USB 5-pin mini Type-B to the USB console port as shown in Figure 5-1. If connecting the USB port for the first time on a Windows based PC, you must install the Windows USB driver. See «Installing the Cisco Microsoft Windows USB Device Driver» section.

Note You must use either the USB port or the RJ-45 port. Not both simultaneously. See «USB Serial Console» section. When the USB port is used it takes priority over the RJ-45 EIA port.

Figure 5-1 Connecting the Console Cable to the Router

Источник

Читайте также:  Guide from windows to mac
Оцените статью