交换机优化配置

interface GigabitEthernet0/1
switchport access vlan 2
switchport mode access
//switchport host(主机模式) = switchport mode access + switchport portfast(不能做TRUNK口)
T color=#f00000>switchport protected //端口保护,主机之间相互不能访问
storm-control broadcast level 0.01 //广播风暴控制
spanning-tree portfast //端口快速启动,否则要等待生成树收敛,需要大约50秒的时间
spanning-tree bpduguard enable //当有环路时,端口变为err-disable状态,需手动关闭再启用
 
ip dhcp snooping //全局开启DHCP侦测
 
interface GigabitEthernet0/24
switchport trunk encapsulation dot1q
switchport mode trunk
ip access-group 110 in //应用到入口方向
ip dhcp snooping trust //信任,即只接受TRUNK口下的DHCP服务
 
access-list 110 deny tcp any any eq 3389 //禁止远程桌面

TAG:
许可证编号:宁ICP备11000983号-1 宁公网安备 64010602000659号
Copyright 2010 - 2024 www.sharpinfo.cn, All Rights Reserved
宁夏锋利信息技术服务有限公司 版权所有