text stringlengths 0 6.55k |
|---|
Command |
crypto key generate rsa [modulus 360..2048] |
transport input {telnet | ssh | all | none} |
Mode/Purpose/Description |
Global command. Creates and stores (in a hidden location in flash memory) the keys required by SSH. |
vty line configuration mode. Defines whether Telnet/SSH access is allowed into this switch. Both values can be configured on one command to allow both Telnet and SSH access (the default). |
Table 6-6 Switch IPv4 Configuration |
Command |
interface vlan number |
ip address ip-address subnet-mask |
ip address dhcp |
ip default-gateway address |
Mode/Purpose/Description |
Changes the context to VLAN interface mode. For VLAN 1, allows the configuration of the switch’s IP address. |
VLAN interface mode. Statically configures the switch’s IP address and mask. |
VLAN interface mode. Configures the switch as a DHCP client to discover its IPv4 address, mask, and default gateway. |
Global command. Configures the switch’s default gateway IPv4 address. Not required if the switch uses DHCP. |
ip name-server server-ip-1 Global command. Configures the IPv4 addresses of DNS servers, server-ip-2 … so any commands when logged in to the switch will use the DNS |
for name resolution. |
Table 6-7 Other Switch Configuration |
Command hostname name |
enable secret pass-value |
history size length |
logging synchronous |
[no] logging console |
exec-timeout minutes [seconds] |
Mode/Purpose/Description |
Global command. Sets this switch’s hostname, which is also used as the first part of the switch’s command prompt. |
Global command. Sets this switch’s password that is required for any user to reach enable mode. |
Line config mode. Defines the number of commands held in the history buffer, for later recall, for users of those lines. |
Console or vty mode. Tells IOS to send log messages to the user at natural break points between commands rather than in the middle of a line of output. |
Global command that disables or enables the display of log messages to the console. |
Console or vty mode. Sets the inactivity timeout, so that after the defined period of no action, IOS closes the current user login session. |
|||||||||||||||||||| Technet24 |
|||||||||||||||||||| |
Chapter 6: Configuring Basic Switch Management 149 |
Table 6-8 Chapter 6 EXEC Command Reference |
Command |
show running-config |
show running-config | begin line vty |
show dhcp lease |
show crypto key mypubkey rsa |
show ip ssh |
show ssh |
show interfaces vlan number |
show ip default-gateway |
terminal history size x |
show history |
Purpose |
Lists the currently used configuration. |
Pipes (sends) the command output to the begin command, which only lists output beginning with the first line that contains the text “line vty.” |
Lists any information the switch acquires as a DHCP client. This includes IP address, subnet mask, and default gateway information. |
Lists the public and shared key created for use with SSH using the crypto key generate rsa global configuration command. |
Lists status information for the SSH server, including the SSH version. |
Lists status information for current SSH connections into and out of the local switch. |
Lists the interface status, the switch’s IPv4 address and 6 mask, and much more. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.