Basic Router and Switch Configuration

Basic Router and Switch Configuration

1. Setting the Hostname

———————–
Router(config)#hostname AIUB

2. Setting the Banner MOTD
————————–
AIUB(config)#banner motd #Unauthrozied Access Prohibited!#

3. Securing the Privileged EXEC Mode/enable mode
————————————
AIUB(config)#enable secret cisco

 

4. Secure all the ways to access the Router
——————————————-
AIUB(config)#line console 0
AIUB(config-line)#password cisco
AIUB(config-line)#login
AIUB(config-line)#exit

AIUB(config)#line vty 0 4
AIUB(config-line)#password cisco
AIUB(config-line)#login
AIUB(config-line)#exit

5. Enabling Password Encryption Service globally
————————————————
AIUB(config)#service password-encryption

6. Setting the Minimum password length
————————————–
AIUB(config)#security passwords min-length 8

7. Enabling IPv6 Unicast Routing
——————————–
AIUB(config)#ipv6 unicast-routing

8. Configuring Interface IP Addresses
————————————-
AIUB(config)#int g0/0
AIUB(config-if)#ip address 172.20.3.254 255.255.252.0
AIUB(config-if)#ipv6 address 2001:210:BAD:1::/64
AIUB(config-if)#description User LAN
AIUB(config-if)#no shutdown
AIUB(config-if)#exit

AIUB(config)#int g0/1
AIUB(config-if)#ip address 172.16.4.30 255.255.255.224
AIUB(config-if)#ipv6 address 2001:210:BAD:9::/64
AIUB(config-if)#description Server LAN
AIUB(config-if)#no shutdown
AIUB(config-if)#exit

 

9. Creating a Local User Database
———————————
AIUB(config)#username admin secret admin123
AIUB(config)#username jradmin secret jradmin123

AIUB(config)#line console 0
AIUB(config-line)#login local
AIUB(config-line)#exit

AIUB(config)#line vty 0 4
AIUB(config-line)#login local
AIUB(config-line)#exit

10. Configuring SSH
——————-
a) Configure IP Domain Name
—————————
AIUB(config)#ip domain-name aiub.edu

b) Generate Cryptographic Key
—————————–
AIUB(config)#crypto key generate rsa

c) Enable SSH in Line vty
————————-
AIUB(config)#line vty 0 4
AIUB(config-line)#transport input ssh

To check, use the following command in the command prompt of the PC
PC>ssh -l admin 172.20.3.254

d) Configuring Optional SSH Parameters
————————————–
AIUB(config)#ipssh version 2

AND authentication code is below

AIUB(config)#ipssh authentication-retries 5

AIUB(config)#ipssh time-out 60

Switch Configuration

hostname USW
enable secret 5 $1$mERr$28TNE07yx85XIfNWklfaG/
interface Vlan1
ip address 172.16.3.253 255.255.252.0
ip default-gateway 172.16.3.254
banner motd ^CUnauthorized Access Prohibited!^C

line con 0
password smpa$$word
login
line vty 0 4
password smpa$$word
login
line vty 5 15
login

hostname SSW
enable secret 5 $1$mERr$28TNE07yx85XIfNWklfaG/
interface Vlan1
ip address 172.16.8.109 255.255.255.240
ip default-gateway 172.16.8.110
banner motd ^CUnauthorized Access Prohibited!^C
line con 0
password smpa$$word
login
line vty 0 4
password smpa$$word
login
line vty 5 15
login
end

router

The cable used for connections

 

Here are connection tips to remember:

category 1:Hub, Switch

category 2:Router, Host, Server

Or

They are also divided into two groups.

Group 1: Router, Host, Server
Group 2: Hub, Switch

To connect the COM port of a host ( PC, Server or Printer) to the CONSOLE port of a router or switch?” we use a rollover cable.

Basically, you use an RJ 45 to DB9 Female cable converter for proper communication between the two Organizational Unique Identifier (OUI) is the first 24 bits of a MAC address for every network device.

This shows the specific vendor, manufacturer, or organization for that device as assigned by the Institute of Electrical and Electronics Engineers, (IEEE).

want to read more about computer networking? keep Eyes on this site

READ MORE…

Subnetting – The Magic Number

Related Posts

No Responses

Add Comment

You cannot copy content of this page