Link to home
Start Free TrialLog in
Avatar of okamon
okamon

asked on

cisco telnet: line vty 0 15 vs line vty 0 4 ?

I really not sure what's the difference between line vty 0 15 and line vty 0 4 ....
I see someone use one or the other while setting up telnet login on cisco switch or router....
ASKER CERTIFIED SOLUTION
Avatar of southpau1
southpau1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Don Johnston
Don Johnston
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

The oldest routers has only 5 vty lines, that showing the config:

line vty 0 4

The newest CISCO IOS devices has 16 VTY lines:

line vty 0 4

line vty 5 15
The command syntax is :

line vty start-line-number ending-line-number


Examples:
This command sets the line password on ALL line on a box with 16 vty lines to cisco123

line vty 0 15
password cisco123
login


This command sets the line password on the first 5 lines on a box with 16 vty lines to cisco123

line vty 0 4
password cisco123
login


This command sets the line password on ALL line on a box with 5 vty lines to cisco123

line vty 0 4
password cisco123
login


This command sets the line password on the first 2 lines on a box with 16 vty lines to cisco123

line vty 0 1
password cisco123
login

Note: Lines are allocated dynamically starting from 0 up to maximum available lines
Did you have any more questions on this topic?  If not, please award point and close the question
Avatar of okamon
okamon

ASKER

"all it is is the number of simultaneous remote connections allowed"
so that means I can also use "line vty 0 1" ?
And if I have "line vty 0 4" what happen if 2 people configure the router at the same time? no conflict?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
so that means I can also use "line vty 0 1" ?

Yes.  But keep in mind that you can't select the line you will connect to when you telnet in. Which is why most people assign the same password to all the lines that can be in use.

And if I have "line vty 0 4" what happen if 2 people configure the router at the same time? no conflict?

As Nazsky said, no problem making changes. But if two people try to save the config at the same time, one will receive an error message. But it would have to be done at exactly the same time.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial