-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02RouterBasicConfiguration.txt
61 lines (49 loc) · 1.79 KB
/
02RouterBasicConfiguration.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
##Basic Router Configurations
==============================
Command for User Exec Mode to Privileged Mode
==============================================
Would you like to enter the initial configuration dialog? [yes/no]: no
Router>enable
Command for Privileged Mode to Configuration Mode
==================================================
Router#configure terminal
Setup Hostname
===============
Router(config)#hostname R1
Note: Here, R1 is the hostname
Configure Passwords in Router
==============================
1. Privileged Mode Password Setup
==================================
R1(config)#enable password cricket
Note: Here, cricket is the password
R1(config)#no enable password --->Delete password from privileged mode
2. Privileged Mode Secret Password Setup
=========================================
R1(config)#enable secret cricket
R1(config)#no enable secret --->Delete secret password from privileged mode
Encrypted all the Passwords of a Router
========================================
R1(config)#service password-encryption
Set a Minimum Length of Passwords
==================================
R1(config)#security passwords min-length 8
Note: Here, 8 is the minimum length
To View the Running Configuration of a Router
==============================================
R1#show running-config
Note: This command works in the Privileged Mode
Setup Banner Message
=====================
R1(config)#banner motd $Hello World!$
Note: Message should be between two dollar signs($)
Assign IPv4 Address to an Interface of a Router
================================================
R1(config)#int f0/0
R1(config-if)#ip address 172.16.2.2 255.255.255.128
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#int f0/1
R1(config-if)#ip address 172.16.1.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit