Config switch Cisco dòng Catalyst

conf t >> vào mode cấu hình
hostname SW-2137-AP-T4A >> đặt tên hostname
username Cisco priv 15 secret xxxx >> tạo tài khoản Cisco (có phân biệt hoa - thường) với pass là xxxx, mức quyền hạn 15 (cao nhất)
ip default-gateway 10.8.6.55 >> trỏ đến default gateway chính
no ip http server >> tắt truy cập switch qua web giao thức http
no ip http secure-server >> tắt truy cập switch qua web giao thức https
snmp-server community YYYY ro >> bật snmp với key là YYYY, read only
line vty 0 4 >> cấu hình truy cập ssh
login local >> cho phép truy cập ssh bằng user đã tạo ở trên
exit
line vty 5 15
login local
logging synchronous
transport input ssh
vlan 6 >> tạo vlan số 6
name ZZZ >> đặt tên vlan 6
exit
int vlan 6
ip address 192.168.6.41 255.255.255.0 >> đặt IP cho switch
exit

int po1 >>
des UpLink-To-DistSw
sw mode trunk >> với switch catalyst dòng cũ, cần thêm 1 dòng cấu hình "switchport trunk encapsulation dot1q"
sw trunk native vlan 6
exit
int range gi1/0/1-24
shutdown
exit
int gi1/0/23
des Uplink-to-DistSw
switchport mode trunk
switchport trunk native vlan 6
snmp ifindex persist
channel-group 1 mode passive >> sw ở dưới đặt passive, ở trên đặt active
no shutdown
exit
int gi1/0/24
des Uplink-to-DistSW
switchport mode trunk
switchport trunk native vlan 6
snmp ifindex persist
channel-group 1 mode passive >> sw ở dưới đặt passive, ở trên đặt active
no shutdown
exit
vlan 7
name Equipments

end

show logging 

_____________________________________________________________________

trunk thông, vlan native thông nhưng các client đã gán vlan vẫn không lấy được IP, đứng từ switch chỉ ping được trong dải switch, ko ping được đi khác dải:

switchport trunk allowed vlan add 1-4094
switchport default-vlan tagged

_____________________________________________________________________

No comments:

Post a Comment

Full các trường data có thể lấy từ AD on-prem

Mail Presence PermissionGrants Department ImAddresses Responsibilities AppRoleAssignments ...