Lenh Co Ban

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Cc l nh s d ng trong packet tracer Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#enable password <mat khau ko dc ma hoa> R1(config)#enable secret <mat

khau dc ma hoa> R1(config)#line console 0 R1(config-line)#password <password> < t pas cho line console 0> R1(config-line)#login R1(config)#line vty 0 4 R1(config-line)#pas R1(config-line)#password <password> < t pas cho line vty 0 n> R1(config-line)#login R1(config-line)#exit R1(config)#banner motd " m t l i c nh bo ho c ch " R1(config)#interface fastEthernet 0/0 R1(config-if)#ip address < a ch m ng > <subnetmask> R1(config-if)#no shutdown R1(config)#interface serial 0/0 R1(config-if)#ip address < a ch m ng > <subnetmask> R1(config-if)#no shutdown

User EXEC Mode

enable - Enter Privileged EXEC mode

Privileged EXEC Mode Copy run start L u c u hnh hi n t i vo NVRAM copy running-config startup-config - Copy the active configuration to NVRAM. copy startup-config running-config - Copy the configuration in NVRAM to RAM. erase startup-configuration - Erase the configuration located in NVRAM. ping ip_address - Ping to that address. traceroute ip_address - Trace each hop to that address. show interfaces - Display statistics for all interfaces on a device. show clock - Show the time set in the router. show version - Display currently loaded IOS version, hardware, and device information. show arp - Display the ARP table of the device. show startup-config - Display the saved configuration located in NVRAM. show running-config - Display the contents of the currently running configuration file. show ip interface - Display IP statistics for interface(s) on a router. configure terminal - Enter terminal configuration mode.

Terminal Configuration Mode hostname hostname - Assign a host name to device. enable password password - Set an unencrypted enable password.

enable secret password - Set a strongly encrypted enable password. service password-encryption - Encrypt display of all passwords except secret. banner motd# message # - Sets a message-of-the-day banner. line console 0 - Enter console line configuration mode. line vty 0 4 - Enter virtual terminal (Telnet) line configuration mode. interface Interface_name - Enter interface configuration mode.

Line Configuration Mode login - Enable password checking at login. password password - Set line password.

Interface Configuration Mode ip address ip_address netmask - Set interface IP address and subnet mask. description description - Set interface description. clock rate value - Set clock rate for DCE device. no shutdown - Set interface to up. shutdown - Administratively set interface to down.

You might also like