﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>PHP博客-青蛙不是癞蛤蟆-随笔分类-Security</title><link>http://www.phpweblog.net/billow/category/73.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 08:51:53 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 08:51:53 GMT</pubDate><ttl>60</ttl><item><title>Cisco3550以上交换机基于2层和3层的端口安全 </title><link>http://www.phpweblog.net/billow/archive/2006/08/11/312.html</link><dc:creator>学习资料库</dc:creator><author>学习资料库</author><pubDate>Fri, 11 Aug 2006 05:18:00 GMT</pubDate><guid>http://www.phpweblog.net/billow/archive/2006/08/11/312.html</guid><wfw:comment>http://www.phpweblog.net/billow/comments/312.html</wfw:comment><comments>http://www.phpweblog.net/billow/archive/2006/08/11/312.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.phpweblog.net/billow/comments/commentRss/312.html</wfw:commentRss><trackback:ping>http://www.phpweblog.net/billow/services/trackbacks/312.html</trackback:ping><description><![CDATA[
		<div class="postText">Cisco3550以上交换机均可做基于2层和3层的端口安全，即mac地址与端口绑定以及mac地址与ip地址绑定。以cisco3550交换机为例：做mac地址与端口绑定的可以实现两种应用：<br />　　a、设定一端口只接受第一次连接该端口的计算机mac地址，当该端口第一次获得某计算机mac地址后，其他计算机接入到此端口所发送的数据包则认为非法，做丢弃处理。<br />Switch#config terminal<br />Switch(config)#interface interface-id 进入需要配置的端口<br />Switch(config-if)#switchport mode access 设置为交换模式<br />Switch(config-if)#switchport port-security 打开端口安全模式<br />Switch(config-if)#switchport port-security violation {protect | restrict | shutdown } //针对非法接入计算机，端口处理模式{丢弃数据包，不发警告 | 丢弃数据包，在console发警告 | 关闭端口为err-disable状态，除非管理员手工激活，否则该端口失效。}<br />　b、设定一端口只接受某一特定计算机mac地址，其他计算机均无法接入到此端口。初始设置与上面步骤a相同配置，然后配置以下部分：<br />　　Switch(config-if)#switchport port-security mac-address sticky <br />　　Switch(config-if)#switchport port-security aging static //打开静态映射<br />Switch(config-if)#switchport port-security mac-address sticky 0030.3033.3333 <br />//为端口输入特定的允许通过的mac地址<br />　　mac地址与ip地址绑定基本原理：<br />　　在交换机内建立mac地址和ip地址对应的映射表。端口获得的ip和mac地址将匹配该表，不符合则丢弃该端口发送的数据包。<br />　　实现方法：<br />　　Switch#config terminal<br />　　Switch(config)#arp 1.1.1.1 0030.3033.3333 arpa <br />　　该配置的主要注意事项：需要将网段内所有IP都建立MAC地址映射，没有使用的IP地址可以与0000.0000.0000建立映射。否则该绑定对于网段内没有建立映射的IP地址无效。<br /></div>
<img src ="http://www.phpweblog.net/billow/aggbug/312.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.phpweblog.net/billow/" target="_blank">学习资料库</a> 2006-08-11 13:18 <a href="http://www.phpweblog.net/billow/archive/2006/08/11/312.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>