The Line Commands
Last updated
Last updated
Most network equipment has some sort of line command, where line refers to an asynchronous communications line (many years ago, a phone line or serial line) used to connect to a terminal. Each type of line refers to a physical or virtual terminal. Try the command show line to see what lines are configured on your device.
If you do a show run, you can see the generic configuration.
The console port is used to configure a brand-new router when it is taken out of the box. On Cisco equipment, this requires a non-standard cable (DB9 to RJ45), always bright blue in colour. There is only a single console line, line 0. This port must be secured to prevent someone with physical access from accessing the equipment.
Configure console access as shown. Look up and understand all the commands I have used.
Notice the shortcut? I use conf t instead of configure terminal. From now on, you will be asked for the password each time you login!
For ease, I will provide all the commands.
On a live system, console messages may show up while you are typing commands. This is a distraction and may lead to you entering incorrect commands. When you set the option logging synchronous, console messages only appear after you press return.
Some equipment may have TTY lines (teletype), you will also come across these in Linux. These are intended for serial devices such as printers, modems, dumb terminals etc. VTY ports are virtual TTY ports which are used to telnet or SSH into a device over the network.
Configure VTY as shown. Depending on the device, we may have five or sixteen VTY lines. The example below sets from VTY line 0-15.
An auxiliary port is like a second or backup console port. We will set a simple example for AUX. Devices may not have an AUX port, check before configuring.
Do a show run to validate your work. What do you notice about the passwords you have typed in? Are they secure? Is this good?
We could create a password preventing a user from entering exec mode by typing enable password MySecret but this will also be in plain text, not secure.