Firstly connect PC0 & Switch through console cable, then
login Switch by Terminal from PCO.
Switch end
configuration:
Switch#conf t
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#int vlan 10
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#enable password telnet123
Switch(config)#line vty 0 4
Switch(config-line)#password telnet321
Switch(config-line)#login
Switch(config)#int fa0/1
Switch(config)#no shut
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch#copy running-config startup-config
Assign IP at PC1 as shown in below,
From PC1 end using command prompt login to Switch as below,
PC>telnet 192.168.1.1
Trying 192.168.1.1 ...Open
User Access Verification
Password:
Switch>enable
Password:
From Switch end you can check which line user currently
login by telnet as below command,
Switch# show users



No comments:
Post a Comment
Comment