By applying an access list to an inbound vty, you can control the source IP a router can be accessed from.
Router> enable
Router# config terminal
Router(config)# access-list 1 permit 192.168.200.0 0.0.0.255
Router(config)# line vty 0 15
Router(config-line)# access-class 1 in
Router(config-line)# exit
Router(config-line)# end
By applying an input statement on the inbound vty, you can control the protocols used to access the router.
Router> enable
Router# config terminal
Router(config)# line vty 0 15
Router(config-line)# transput input { telnet | ssh } (you can specify either or both)



Print This Post





