Security

line console 0

Configure the console line (the cable you're typed in on). 'line con 0' works too.

Works on: Router, Firewall, Switch, Access pointMode: config

Example

R1(config)# line con 0
R1(config-line)# password C0ns0le!
R1(config-line)# login
Run this command live

Don't just read it — type line console 0 in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "line console 0" command do?

Configure the console line (the cable you're typed in on). 'line con 0' works too.

Example of "line console 0"

R1(config)# line con 0 R1(config-line)# password C0ns0le! R1(config-line)# login

More Security commands

← Back to the full command reference

line console 0 — network CLI command reference · NetForge-AI