Jump to content

hi guys i really don't get what's the difference between the interface vlan and the line vty commandes. i read many topics that says that they are the same thing but still they don't get configured the same way   . and what's a line and a interface exactelly please . thanks guys 

Link to comment
https://linustechtips.com/topic/672992-diffrence-between-vty-and-vlan/
Share on other sites

Link to post
Share on other sites

Any place that says VTY and VLAN are the same thing is junk.

A VTY line is used for SSH and Telnet access to the device. Here you configure login parameters and password.

A VLAN interface is in simplest terms the Layer 3 interface for a VLAN, allowing you to configure an IP address on it.

 

 

Edit:

An example of a VTY configuration:

line vty 0 4
 access-class SSH in
 exec-timeout 0 0
 privilege level 15
 password cisco.123
 logging synchronous
 transport preferred ssh
 transport input telnet ssh
 transport output all

 

An example of a VLAN Interface configuration:

interface Vlan15
 description Printers VLAN
 ip address 192.168.15.1 255.255.255.224
 ip helper-address 192.168.15.75
 ipv6 address 2606:A000:4390:7015::1/64
 ipv6 enable
 ipv6 dhcp relay destination 2606:A000:4390:7070::100
 ipv6 ospf 1 area 0

Current Network Layout:

Current Build Log/PC:

Storage Server Setup:

 

Prior Build Log/PC:

Link to post
Share on other sites

ok so it's the vty when configured helps me work with telnet and ssg and give me access while the vlan interface is where i will configure the ip address right and why there are so many vty's and we have only one default vlan that is vlan 1

  

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×