1. Build a basic small local area network by operating the switch
2. Shortcut keys to improve iOS operation mode
3. Preliminary knowledge of IP this ghost thing
TCP/IP protocol stack
Package and package (dress up and undress)
Understanding, understanding, Mastery, mastery, research
Application Engineer
1. Set up a basic small area network by operating the switch, similar to network management
Idiot switch (VLAN1)! ---> Medium lan
Sw1#show VLAN Brief//Authentication VLAN Brief information
SW1 (Config-vlan) #name qyt//vlan1 as the default VLAN and cannot be modified
%default VLAN 1 May is not having its name changed.
Equipment is empty, why exist VLAN10, 20 and so on?
VLAN information may be stored in a different location on a Cisco device
The real machine keeps the VLAN information in the Flash card's Vlan.dat file.
Learn to use the help command and you get started with half a foot. Everyone learns to mark
Full Help and partial help
Sw1#clock set 20:19?
HH:MM:SS//Command format, also called keyword
Sw1#clock set 20:19?
% Unrecognized command, why not recognize it?
Sw1#clock Set 20:22:30 April 16
% incomplete command.
Sw1#clock Set 20:22:30 April 16 2018?
<cr>//representative carriage return ~ execution
SW1 (config) #clock timezone BJ +8//Set time zone to BK +8
Save:
Branch#copy running-config startup-config//equals WR, saves the running files to nonvolatile registers (NVRAM) to
Destination filename [startup-config]?
Building configuration ...
[OK]
The configuration of the Cisco router device is saved in NVRAM; the low-end switch configuration is saved in the Flash (dir)---> Hack the switch password without destroying the original configuration
Branch#reload//Restart command shortcut keys---> Hand speed
tab//Fill command
CTRL + A//cursor to beginning of line
Ctrl+e//cursor to end of line
Ctrl+u//Erase a row
CTRL+SHIFT+6//Interrupt test, such as Ping
CTRL + C//Do not execute command, exit to privileged mode
CTRL + Z//Execution complete command, exit to privileged mode
Branch#terminal length 0//Show all Configurations
Pipe character |, more precise positioning configuration and display
SH Run | Section
Log function in SecureCRT, file---file
Operation:
XXX Fiber: Singlemode, multimode?
Using Vlan1 to realize terminal communication
PC1:
PC1 (config) #int E0/1
PC1 (config-if) #ip add
PC1 (config-if) #ip address 10.1.10.1?
A.B.C.D IP Subnet Mask
PC1 (config-if) #ip address 10.1.10.1 255.255.255.248
PC1 (config-if) #no Shu
PC2:
PC2 (config) #int E0/1
PC2 (config-if) #no Shu
PC2 (config-if) #ip address 10.1.10.6 255.255.255.248
Pc2#show IP route//Authentication routing table
Codes:l-Local, c-connected, S-static, R-rip, M-mobile, B-BGP
D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area
N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2
E1-OSPF external Type 1, E2-OSPF external type 2
I-is-is, Su-is-is Summary, L1-is-is level-1, L2-is-is level-2
Ia-is-is Inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route, H-NHRP, L-lisp
A-application Route
-
- Replicated route,%-Next hop override
Gateway of last resort are not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.10.0/29 is directly connected, ETHERNET0/1
L 10.1.10.6/32 is directly connected, ETHERNET0/1
Pc1#show IP route
Codes:l-Local, c-connected, S-static, R-rip, M-mobile, B-BGP
D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area
N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2
E1-OSPF external Type 1, E2-OSPF external type 2
I-is-is, Su-is-is Summary, L1-is-is level-1, L2-is-is level-2
Ia-is-is Inter area, *-candidate default, U-per-user static route
O-ODR, P-periodic downloaded static route, H-NHRP, L-lisp
A-application Route
-
- Replicated route,%-Next hop override
Gateway of last resort are not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.10.0/29 is directly connected, ETHERNET0/1
L 10.1.10.1/32 is directly connected, ETHERNET0/1
Pc1#ping 10.1.10.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.10.6, timeout is 2 seconds:
.!!!!
Success rate is percent (4/5), round-trip Min/avg/max = 1/1/1 ms
pc1#
PC1 and PC2 cannot communicate if the configuration of SW1 and SW2 is not restored
PC2 (config) #line vty 0 4
PC2 (config-line) #password Qyt
PC2 (config-line) #transport input Telnet
PC2 (config) #enable secret?
0 specifies an unencrypted password would follow
5 Specifies a MD5 HASHED secret would follow
8 Specifies a PBKDF2 HASHED secret would follow
9 Specifies a scrypt HASHED secret would follow
Line the unencrypted (cleartext) ' Enable ' secret
Level Set exec level password
PC2 (config) #enable secret qytang123//secret level above Password,secret password takes effect
PC2 (config) #enable password Qytang
Pc2#terminal Monitor//display logs on a remotely managed terminal
Pc2#conf T
Enter configuration commands, one per line. End with cntl/z.
PC2 (config) #hostname pc-test
Pc-test (config) #
pc-test#
*APR 10:15:11.661:%sys-5-config_i:configured from the console by Vty0 (10.1.10.1)//Log more to understand configuration changes and whether the configuration takes effect
Homework:
1) PC1 and PC2 communication via the VLAN1 of 2 switches (with my configured address)
2) Configure secret password on PC2
3) When remote management, display log
CCNA-2 working with iOS and keyboard shortcuts and remote connection improvements