Cấu hình Switch Cisco 2960 Lab

configure terminal
hostname P40.SW02-42
ip domain-name huce.edu.vn
crypto key generate rsa
512
end

configure terminal
line console 0
password Nuce@xxxx
login
end

configure terminal
enable secret Nuce@xxxx
end

configure terminal
line vty 0 15
password Nuce@xxxx
login
transport input all
end

configure terminal
username quangtv password Nuce@xxxx
line vty 0 15
transport input all
end


configure terminal
ip http server
username quangtv privilege 15 password Nuce@xxxx
end
write

configure terminal
service password-encryption
end

configure terminal
clock timezone GMT+7 7
end


#clock set 14:59:00 10 jun 2023

#config t
#ntp enable
#ntp server 192.168.0.2
#clock timezone GMT+7 7
#end


configure terminal
interface vlan 1
ip address 10.0.0.42 255.255.255.0
no shutdown
end

configure terminal
snmp-server community dhxd RO
snmp-server host 192.168.0.55 version 2c dhxd
logging host 192.168.206.2
end

configure terminal
vlan 24
name VLAN24
end

configure terminal
interface range gigabitEthernet 1/0/1-47
switchport mode access
switchport access vlan 24
end

configure terminal
interface range gigabitEthernet 1/0/48-52
switchport mode trunk
end

copy running-config startup-config

/var/www/html/rra/d_tn_17_traffic_in_3541.rrd