Cisco Misc info

Page Breaks (in sh run etc..)

To stop the page breaks:

# terminal length 0

To resume them:

# terminal no length 0 (or number ex. 24)

Capture console messages to VTY

Console messages are not usually logged to a telnet / ssh vty session, term mon enables this and no term mon disables.

# terminal monitor

Usernames in logins

sw-1(config)#service password-encryption
sw-1(config)#username myuser password topsecret

This results in:-

sw-1#sh run
Building configuration...
...edited...
  username myuser password 7 <encrypted password>

Each line needs to be configured to use the local password database:-

sw-1(config)#line vty 0 4
sw-1(config-line)#login local

SSH access to switch

Config ssh

sw-1(config)#ip ssh version 2
crypto key generate rsa modulus 2048
ip ssh time-out 60  
ip ssh authentication-retries 3 

See also ssh to Cisco 3750 for resolving issues with cyphers and hashs.

SSH protocol mismatch

See ssh to Cisco 3750 to see how to edit your ~/.ssh/config file to fix this.

Force ssh only by disabling telnet

line vty 0 4
 password 7 07062341165B4150
 login local
 transport input ssh
line vty 5 15
 password 7 07062341165B4150
 login local
 transport input ssh

Power over Ethernet control

3750-1#conf t
3750-1(config)#interface fastEthernet 1/0/13
3750-1(config-if)#power inline ?
  auto         Automatically detect and power inline devices
  consumption  Configure the inline device consumption
  never        Never apply inline power
  static       High priority inline power interface

3750-1(config-if)#power inline never 
3750-1(config-if)#power inline auto 
 
networking/cisco-misc.txt · Last modified: 12/06/2023 12:39 by andrew