BLOG

Configure Cisco firewall in Linux

Connect Cisco device via console cable to COM port.

COM (communication port) is the original, yet still common, name of the serial port interface on PC-compatible computers. It can refer not only to physical ports, but also to emulated ports, such as ports created by Bluetooth or USB adapters. Wikipedia.

 

Determine connected port in Debian-based systems:

sudo dmesg | grep -i tty

 

The output will look something like one of these:

[    0.788856] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.789144] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[94023.461242] usb 2-1: pl2303 converter now attached to ttyUSB0
[107561.131086] type=1503 audit(1260922689.994:33): operation="open" pid=27195 parent=27185 profile="/usr/sbin/cupsd" requested_mask="w::" denied_mask="w::" fsuid=0 ouid=0 name="/dev/ttyUSB0

 

Launch terminal window and start minicom application:

sudo minicom -s

 

Select Serial port setup.

In opened window press A for set Serial Device and enter value: /dev/ttyUSB0.

Press E for change baud rate, then press C to set it to 9600.

Change Hardware Flow Control to No by pressing F.

Select Exit menu item.

 

Set password for Enable mode:

cisco> enable
cisco# configure terminal
cisco(config)# enable password my_password

 

Set username and password for "configure terminal" mode:

cisco> enable
cisco# configure terminal
cisco(config)# username <username> password <password> privilege 15

 

Set auth method:

cisco> enable
cisco# configure terminal
cisco(config)# aaa authentication serial console LOCAL

 

Exit from minicom:

<CTRL+A> X <ENTER>

Top button