Public domain
configure terminal
hostname SW1
end
configure terminal
enable secret 123456
end
configure terminal
line vty 0 4
password 123456
login
line vty 5 15
password 123456
login
end
configure terminal
line console 0
password 123456
login
end
configure terminal
service password-encryption
end
configure terminal
line console 0
exec-timeout 0 0
end
configure terminal
no logging console
end
configure terminal
no service config
end
First method: Disabling automatic connection with a hostname in command line
configure terminal
line console 0
transport preferred none
line vty 0 4
transport preferred none
line vty 5 15
transport preferred none
end
Second method: Disabling ip domian lookup
configure terminal
no ip domain-lookup
end
BY: Pejman Moghadam
TAG: error, console
DATE: 2012-02-01 17:18:28