文档介绍:交换机端口安全之类的配置
在三层交换设备上开启Telnet管理功能
DCRS-5650-28(R4)(config)#telnet-server enable
Telnet server has been runk successfully
使用SNMP技术对三层交换机进行管理
DCRS-5650-28(R4)(config)#snmp-server enable
配置只读字串为public,读写字串为private
DCRS-5650-28(R4)(config)#snmp-server community ro public DCRS-5650-28(R4)(config)#snmp-server community rw private
DCRS-5650-28(R4)(config)#snmp-server securityip enable DCRS-5650-28(R4)(config)#snmp-server securityip
将二层交换机的Ethernet0/0/9端口开启ARP保护功能,防止PC机发出的网关欺骗报文DCS-3950-28C(config-if-ethernet0/0/9)#arp-guard ip
在二层交换机上Ethernet0/0/4接口上,要求mac为00-FF-51-FD-AE-15的主机不能访问行政部的主机MAC地址为:E0-94-67-05-5D-84,其余主机正常访问
DCS-3950-28C(config)#firewall enable DCS-3950-28C(config)#mac-access-list extended mac
DCS-3950-28C(config-mac-ext-nacl-mac)#deny
host-source-mac 00-FF-51-FD-AE-15 host-destination-mac E0-94-67-05-5D-84
DCS-3950-28C(config-mac-ext-nacl-mac)#permit
any-source-mac any-destination-mac
DCS-3950-28C(config)#int ethernet 0/0/4
DCS-3950-28C(config-if-ethernet0/0/4)#mac access-group mac in
PC1的MAC地址与接入交换机接口进行绑定
DCS-3950-28C(config)#int ethernet 0/0/10 DCS-3950-28C(config-if-ethernet0/0/10)#switchport
port-security
DCS-3950-28C(config-if-ethernet0/0/10)#switchport
port-security mac-address 44-37-E6-7B-69-AC最多可学****5个mac地址
DCS-3950-28C(config-if-ethernet0/0/10)#switchport
port-security maximum 5
对于学****到更多的mac地址时,直接进行丢弃且不产生通知
DCS-3950-28C(config-if-ethernet0/0/10)#switchport
port-security violation protect
在公司的交换机上配置VRRP,组ID与VLAN ID相同,业务部和售后部需要指定DCRS1为Master;财务部和行政管理需要指定DCRS2为Master。VRRP虚拟网关使用每个部门的网段中最后一个可用IP地址。
当主设备出现故障时,备设备可以接替主设备工作;当主设备恢复时,可以恢复原有工作模式。
DCRS1
router vrrp 10
virtual-ip
interface Vlan10
priority 110
Enable
router vrrp 20
virtual-ip
interface