My Blog List

  • Majeshir Anupras Alankar - मराठी भाषा सौंदर्याने नटलेली आहे. तिला अनेक अलंकार प्राप्त आहेत. त्यापैकी अनुप्रास हा एक शब्दालंकार. एखाद्या वाक्यात किंवा कवितेच्या चरणामध्ये जेव्हा एका...
    3 years ago

Friday, October 29, 2010

Understanding Nexus -- Part 7 -- Basic Configs

Ok then. Since now you know all the required things like hardware, software, software user interface, keyboard shortcuts and all… now its time to look at actual configuration.

In this post we will discuss about the very primary things, which you have to configure on any device at the time of deployment. Like Hostname, MOTD, Banner, telnet etc. etc.

1. Hostname

To change the device hostname... The “name” is alphanumeric, case sensitive, and has a length of 32 characters. The default is switch.
 
switch# configure terminal
switch(config)# hostname Engineering2
Engineering2(config)#

2. MOTD Banner

Maximum of 80 characters per line and Maximum of 40 lines
 
switch# configure terminal
switch(config)# banner motd #Welcome to the Switch#
switch# show banner motd

3. Saving the Config
 
Well its pretty same as what we do in IOS.
 
switch(config)# copy running-config startup-config

4. Erasing the Startup Configuration

The “write erase” command erases the startup configuration except the boot variables, mgmt0 interface IP address and subnet mask, static routes in the management vrf context. 
If you want to erase the complete configuration use the “boot” option with the command
 
switch# write erase

5. Telnet / SSH

SSHv2 is enabled by default and is the recommended protocol for CLI remote access.
TELNET is disabled by default since it is less secure.
Both TELNET and SSHv2 clients are supported as well.

Configuring Telnet

switch# configure terminal
switch(config)# feature telnet       --- Enables Telnet
switch(config)# line vty
switch(config-line)# exec-timeout 30
switch(config-line)# exit
switch(config)# copy running-config startup-config

Configuring SSH

switch# configure terminal
switch(config)# no feature ssh       --- Disable SSH & generate RSA key
switch(config)# ssh key rsa 
generating rsa key(1024 bits)......
generated rsa key
switch(config)# feature ssh        --- Re-enables SSH


No comments:

Post a Comment