Cisco IOS – “service linenumber”

4 01 2007

Just came across something I’d not noticed before in IOS. Apparently this has been around since IOS 10… There’s a command called “service linenumber” – it prints the line number and name of the device you are telnetting to, which can help in avoiding confusion.

Here’s a capture of what I did in my lab – telnet to R4 from R5, enter the command in global config, and telnet back in again to see the difference (note the name and line-number just after the second “open”):

Rack1R5#telnet 132.1.45.4
Trying 132.1.45.4 ... Open

User Access Verification

Password:

Rack1R4>enable
Password:
Rack1R4#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

Rack1R4(config)#service linenumber
Rack1R4(config)#exit
Rack1R4#exit

[Connection to 132.1.45.4 closed by foreign host]

Now, telnet back again – this time note the annoucement of the router name and line number after the session opens:

Rack1R5#telnet 132.1.45.4Trying 132.1.45.4 ... Open

Rack1R4 line 322

User Access Verification

Password:
Advertisements

Actions

Information

One response

17 07 2017
monu yadav

Gkp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: