Menu

9/26/25

Cisco Catalyst C1300 - Tập Lệnh Cấu Hình Chi Tiết

 Cisco Catalyst C1300 - Tập Lệnh Cấu Hình Chi Tiết

=================================================

1. Truy cập CLI

---------------

- Qua cổng console hoặc SSH

2. Cấu hình ban đầu

-------------------

enable

configure terminal

hostname Switch-C1300

3. Cấu hình IP cho VLAN quản lý

-------------------------------

interface vlan 1

ip address 192.168.1.10 255.255.255.0

no shutdown

exit

ip default-gateway 192.168.1.1 (thêm lệnh này nếu cần ssh từ 1 subnet khác)

4. Tạo người dùng và phân quyền

-------------------------------

username admin privilege 15 password Admin@123

enable password level 15 Enable@123

5. Cấu hình port access hoặc trunk

----------------------------------

# Port Access

interface gigabitEthernet1/0/1

switchport mode access

switchport access vlan 10

spanning-tree portfast

# Port Trunk

interface gigabitEthernet1/0/24

switchport mode trunk

switchport trunk allowed vlan 10,20,99

6. Tạo VLAN

-----------

vlan 10

name HR

exit


vlan 20

name IT

exit


vlan 99

name Management

exit


7. Bật SSH để quản lý từ xa

configure terminal
username admin privilege 15 password Admin@123
ip ssh server
ip ssh password-authentication enable

exit

8. Kiểm tra trạng thái

----------------------

show vlan

show running-config

show mac address-table

show version

show interfaces

show interfaces status

show interfaces description

show interfaces vlan

show interfaces trunk

show interfaces switchport


9. Sao lưu cấu hình

-------------------

copy running-config startup-config


No comments:

Post a Comment