Hôm nay tình cờ lướt trên mạng mình có thấy được tài liệu chia sẽ về các lệnh căn bản dùng trong chương trình học CCNA hoặc khi làm việc với các thiết bị của hãng Cisco. Mình có tổng hợp tài liệu và chia ra thành các phần nhỏ hơn, mong sẽ giúp ít được cho bạn nào đang bắt đầu học CCNA hoặc mới bắt đầu làm việc với các thiết bị của Cisco có thể tham khảo.

Line editing commands in CCNA.

Trong quá trình học CCNA hoặc làm việc với thiết bị Cisco, các lệnh dùng để chỉnh sửa dòng lệnh (line editing) giúp thao tác với dòng lệnh một cách hiệu quả hơn. Dưới đây là một số lệnh và tính năng liên quan:

  1. Chỉnh sửa dòng lệnh qua phím tắt:
    • Khi chúng ta nhập lệnh, có thể sử dụng các phím tắt sau để chỉnh sửa dòng lệnh. Các phím tắt này giúp chúng ta chỉnh sửa nhanh chóng và tiết kiệm thời gian.
      • Ctrl-A: Di chuyển đến đầu dòng lệnh.
      • Ctrl-E: Di chuyển đến cuối dòng lệnh.
      • Ctrl-U: Xóa toàn bộ dòng lệnh.
      • Ctrl-K: Xóa từ vị trí con trỏ đến cuối dòng lệnh.
      • Ctrl-W: Xóa từ vị trí con trỏ đến đầu dòng lệnh.
      • Ctrl-Y: Dán lại phần vừa xóa.
      • Ctrl-L: Xóa màn hình và hiển thị lại dòng lệnh.
  2. Chỉnh sửa dòng lệnh khi dòng lệnh quá dài:
    • Khi dòng lệnh quá dài và bị ngắt xuống dòng mới, chúng ta có thể sử dụng phím Backspace để xóa ký tự cuối cùng của dòng lệnh và đưa nó lên dòng trước.
    • Hoặc chúng ta có thể sử dụng phím Ctrl-W để xóa từ vị trí con trỏ đến đầu dòng lệnh.
  3. Tìm kiếm và lọc kết quả của lệnh show và more:
    • Khi chúng ta sử dụng lệnh show hoặc more, có thể sử dụng các phím tắt sau để tìm kiếm và lọc kết quả:
      • Ctrl-F: Tìm kiếm xuống dưới.
      • Ctrl-B: Tìm kiếm lên trên.
      • Ctrl-S: Dừng màn hình để đọc kết quả.
      • Ctrl-Q: Tiếp tục hiển thị kết quả.
Xem thêm  Cách tắt javascript in Chrome, Firefox, Edge.

Việc sử dụng các lệnh chỉnh sửa dòng lệnh giúp chúng ta việc hiệu quả hơn trên thiết bị Cisco!

Show commands in CCNA.

Khi chúng ta tiếp nhận một thiết bị Cisco có thể là router hay Switch để có thể tìm hiểu sơ qua về các cấu hình mà người trước đã config chúng ta dùng lệnh “Show”, dưới đây là danh sách các lệnh Show và giải thích.

show ip interface brief (display interface designations, IP address and status).
show ip route (display routing table).
show arp (View Router/Switch's ARP table).
show vlan brief (on switch - show what VLANs exist, names, ports assigned ).
show controllers serial x/x/x (see if DCE or DTE connected and if clockrate is present).
show interface trunk (what ports are trunking, native vlan, allowed vlans).
show running-config (display the running configuration - active).
show startup-config (display the startup configuration).
show ip protocol (what routing protocol, which networks, passive interfaces, neighbors).
show ip dhcp pool (Check the DHCP pools created on the DHCP Server).
show ip dhcp binding (View a list of hosts that have been assigned IPs with MAC addresses).
show cdp neighbors (see directly connected Cisco devices).
show cdp neighbors detail (includes IP address at other end).
show cdp interface (which interfaces are running CDP).
show interface serial x/x/x (what encapsulation, IP address, counters).
show interface fastethernet x/x switchport (configured mode and operating mode).
show version (which IOS, capability, memory, configuration-register).
show run | begin interface (will start listing at the first instance of ‘interface’).
show ip route connected (show routing table entries for directly connected networks).
show ip route static (show routing table entries for static routes).
show ip route ospf (show routing table entries learned through OSPF).
show ip ospf database (View information about all types of LSAs in OSPF).
show ip route eigrp (show routing table entries learned through EIGRP).
show ip EIGRP neighbor (Check Neighbor information in the EIGRP protocol).
show ip eigrp topology (View information about all paths to the same destination in the EIGRP protocol).
show ip nat translations (Check the Router's NAT table information).
show etherchannel summary (Check the status of etherchannel, protocol, and interfaces in Port-channel).
show mac-address-table or show mac address-table (varies with different IOS).
show etherchannel summary: Check the status of etherchannel, protocol, and interfaces in Port-channel.
show flash (display filenames and directories in Flash memory).
show clock (current date/time in this device).
show ipv6 ??? (does the IPv6 version of many IPv4 commands).
show processes (shows active processes running on router).
show process cpu (shows cpu statistics).
show memory (shows memory allocation).
show users (show who is telnetted into this device).
show standby brief (see if HSRP is active).
show spanning-tree summary (Check out the features Portfast, BPDU Guard, BPDU Filter, port status).
show access-list (Check the access-lists created on the Router/Switch).
ping X.X.X.X (try to reach the destination host at X.X.X.X).
trace X.X.X.X (show the path taken to reach the destination host at X.X.X.X).
R1(config)# do show ??? (execute show commands from configuration mode).
debug ??? (real-time reporting about processes related to almost any function).
debug all (very dangerous as the router can become consumed by reporting everything).
undebug all (turn off all debugging commands – handy if this is a busy router).

Reset Factory Default commands in CCNA.

S1# delete vlan.dat (hit ‘enter’ to accept defaults) [Note: Only do this on a switch] 
S1# write erase (command in enable mode to remove the startup configuration file) or
S1# erase startup-config (hit ‘enter’ to accept defaults [Router or Switch])
S1# reload (answer ‘no’ if asked to save current config [Router or Switch])

Ở trên là những lệnh căn bản khi lần đầu làm việc với thiết Cisco, mình sẽ cập nhật thêm các lệnh cấu hình nâng cao hơn vào các bài khác.

Xem thêm  Cách đổi Browser Fingerprint

Xem thêm:

Các khoá học miển phí về mạng của Cisco.

CCNA- QUÁ TRÌNH KHỞI ĐỘNG CỦA ROUTER CISCO.

CCNA – CẤU HÌNH ROUTER CISCO CƠ BẢN.

Culi Trưởng
Mình là Nghĩa Culi Trưởng của Blog's này, đây là nơi mình ghi lại những kiến thức, kinh nghiệm mà mình học được trong quá trình học tập và làm việc. Hy vọng đã có thể giúp các bạn giải quyết vấn đề đang gặp phải khi ghé thăm Blog's của mình. Trong bài viết có gì sai xót mong mọi người để lại góp ý giúp mình.

BÌNH LUẬN

Vui lòng nhập bình luận của bạn
Vui lòng nhập tên của bạn ở đây

Website này sử dụng Akismet để hạn chế spam. Tìm hiểu bình luận của bạn được duyệt như thế nào.