【交換機(jī)的端口安全配置】(1)_第1頁
【交換機(jī)的端口安全配置】(1)_第2頁
【交換機(jī)的端口安全配置】(1)_第3頁
【交換機(jī)的端口安全配置】(1)_第4頁
【交換機(jī)的端口安全配置】(1)_第5頁
已閱讀5頁,還剩3頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、【官方提供】【實(shí)驗(yàn)文檔】【實(shí)驗(yàn) 0021】【交換機(jī)的端口安全配置】【實(shí)驗(yàn)名稱】交換機(jī)的端口安全配置?!緦?shí)驗(yàn)?zāi)康摹空莆战粨Q機(jī)的端口安全功能,控制用戶的安全接入?!颈尘懊枋觥磕闶且粋€(gè)公司的網(wǎng)絡(luò)管理員,公司要求對網(wǎng)絡(luò)進(jìn)行嚴(yán)格控制。為了防止公司內(nèi)部用 戶的IP地址沖突,防止公司內(nèi)部的網(wǎng)絡(luò)攻擊和破壞行為。為每一位員工分配了固定的IP地址,并且限制只允許公司員工主機(jī)可以使用網(wǎng)絡(luò),不得隨意連接其他主機(jī)。例如:某員工分配的IP 地址是172.16.1.55/24,主機(jī) MAC地址是00-06-1B-DE-13-B4。該主機(jī)連接在1臺2126G上邊?!炯夹g(shù)原理】交換機(jī)端口安全功能,是指針對交換機(jī)的端口進(jìn)行安全屬

2、性的配置,從而控制用戶 的安全接入。交換機(jī)端口安全主要有兩種類項(xiàng):一是限制交換機(jī)端口的最大連接數(shù),二是針對交換機(jī)端口進(jìn)行 MAC地址、IP地址的綁定。限制交換機(jī)端口的最大連接數(shù)可以控制交換機(jī)端口下連的主機(jī)數(shù),并防止用戶進(jìn)行 惡意的ARP欺騙。交換機(jī)端口的地址綁定,可以針對 IP地址、MAC地址、IP + MAC進(jìn)行靈活的綁定。 可以實(shí)現(xiàn)對用戶進(jìn)行嚴(yán)格的控制。保證用戶的安全接入和防止常見的內(nèi)網(wǎng)的網(wǎng)絡(luò)攻 擊。女口 ARP欺騙、IP、MAC地址欺騙,IP地址攻擊等。配置了交換機(jī)的端口安全功能后,當(dāng)實(shí)際應(yīng)用超出配置的要求,將產(chǎn)生一個(gè)安全違例,產(chǎn)生安全違例的處理方式有 3種:protect當(dāng)安全地址個(gè)數(shù)

3、滿后,安全端口將丟棄未知名地址(不是該端口的安全地址中的任何一個(gè))的包。restrict當(dāng)違例產(chǎn)生時(shí),將發(fā)送一個(gè) Trap通知。shutdown當(dāng)違例產(chǎn)生時(shí),將關(guān)閉端口并發(fā)送一個(gè) Trap通知。當(dāng)端口因?yàn)檫`例而被關(guān)閉后,在全局配置模式下使用命令errdisable recovery 來將接口從錯(cuò)誤狀態(tài)中恢復(fù)過來。【實(shí)現(xiàn)功能】針對交換機(jī)的所有端口,配置最大連接數(shù)為1,針對PC1主機(jī)的接口進(jìn)行IP + MAC地址綁定?!緦?shí)驗(yàn)設(shè)備】S2126G交換機(jī)(1臺),PC( 1臺)、直連網(wǎng)線(1條)【實(shí)驗(yàn)拓?fù)洹縋CA圖26【實(shí)驗(yàn)步驟】步驟1.配置交換機(jī)端口的最大連接數(shù)限制。Switch#co nfigure

4、 termi nalSwitch(config)#interfacerange fastethernet 0/1-23!進(jìn)行一組端口的配置模式Switch(config-if-range)#switchport port-security!開啟交換機(jī)的端口安全功能Switch(c on fig-if-ra nge)#switchport port-secruity maximum 1!配置端口的最大連接數(shù)為1Switch(config-if-range)#switchport port-secruity violation shutdown!配置安全違例的處理方式為shutdown驗(yàn)證測試:查

5、看交換機(jī)的端口安全配置。Switch#show port-securitySecure Port MaxSecureAddr(co unt) Curre ntAddr(co unt) Security Actio nFa0/110Shutdow nFa0/210Shutdow nFa0/310Shutdow nFa0/410Shutdow nFa0/510Shutdow nFaO/61Shutdow nOFaO/71Shutdow nOFaO/81Shutdow nOFaO/91Shutdow nOFa0/101Shutdow nOFaO/111Shutdow nOFaO/121Shutdow

6、 nOFaO/131Shutdow nOFaO/141Shutdow nOFaO/151Shutdow nOFaO/161Shutdow nOFaO/171Shutdow nOFaO/181Shutdow nOFaO/191Shutdow nOFaO/2O1Shutdow nOFaO/211Shutdow nOFaO/221Shutdow nOFaO/231OShutdow n步驟2.配置交換機(jī)端口的地址綁定。查看主機(jī)的IP和MA(地址信息在主機(jī)上打開CMD命令提示符窗口,執(zhí)行ipconfig /all命令。!配置IP地址和MAC地址的綁定AddressIPRema ining Age( mi

7、ns)圖27配置交換機(jī)端口的地址綁定Switch#configure terminalSwitch(c on fig)#i nterfacefastether net 0/3Switch(con fig-if)#switchport port-securitySwitch(c on fig-if)#switchport port-security mac-address 0006.1bde.13b4 ip-address 172.16.1.55驗(yàn)證測試:查看地址安全綁定配置。Switch#show port-security addressVla nMacAddressTypePort0006

8、.1bde.13b4172.16.1.55Con figuredFa0/3【注意事項(xiàng)】1、 交換機(jī)端口安全功能只能在ACCES接 口進(jìn)行配置。2、 交換機(jī)最大連接數(shù)限制取值范圍是1128,默認(rèn)是128。3、 交換機(jī)最大連接數(shù)限制默認(rèn)的處理方式是protect ?!緟⒖寂渲谩縎witch#show running-configSystem software version : 1.61(4) Build Sep9 2005 ReleaseBuild ing con figurati on.Current configuration : 3556 bytes!vers ion 1.0!host n

9、ame Switchvia n 1!in terface fastEther net 0/1switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/2switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther

10、 net 0/3switchport port-securityswitchport port-securityviolati on shutdow n172.16.1.55switchport port-security maximum 1switchport port-security mac-address 0006.1bde.13b4 ip-address!in terface fastEther net 0/4switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-secu

11、rity maximum 1 in terface fastEther net 0/5switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/6switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther ne

12、t 0/7switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/8switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/9switchport port-securityswitchpor

13、t port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/10switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/11switchport port-securityswitchport port-securityviolati on shutdow n

14、in terface fastEthernet 0/12switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEthernet 0/13switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/14switchpor

15、t port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/15switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/16switchport port-securityswitchport port-secur

16、ityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/17switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/18switchport port-securityswitchport port-securityviolati on shutdow nswitchport po

17、rt-security maximum 1in terface fastEther net 0/19switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/20switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEthernet 0/21switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security max

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論