国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 網(wǎng)絡(luò)通信 > 正文

配置Cisco交換機(jī)端□和MAC地址表的設(shè)置

2019-11-05 01:35:55
字體:
供稿:網(wǎng)友

  3.3 實(shí)驗(yàn)2:交換機(jī)端□和MAC地址表的設(shè)置
  
  本實(shí)驗(yàn)是對(duì)Cisco Catalyst 1900系列交換機(jī)的端口和MAC地址表相關(guān)的項(xiàng)目進(jìn)行設(shè)置。
  
  1.實(shí)驗(yàn)?zāi)康?br />  
  通過本實(shí)驗(yàn),讀者可以把握以下技能:
  
  設(shè)置交渙機(jī)端口屬性;
  查看交換機(jī)端口配置和統(tǒng)計(jì)信息;
  設(shè)置靜態(tài)MAC地址和查看MAC地址表。
  
  2. 設(shè)備需求
  
  本實(shí)驗(yàn)需要以下設(shè)備:
  
  Cisco Catalyst 1900系列交換機(jī)1臺(tái),型號(hào)不限,企業(yè)版軟件,本實(shí)驗(yàn)中使用了1912交換機(jī);
  帶網(wǎng)卡的PC機(jī)2臺(tái),網(wǎng)線2條;
  PC機(jī)1臺(tái),操作系統(tǒng)為Windows系列,裝有超級(jí)終端程序;
  Console電纜1條及相應(yīng)的接口轉(zhuǎn)換器。
  
  3. 線纜連接及配置說明
  
  如圖3.2所示,把PC機(jī)連接在交換機(jī)的EO/9和EO/11兩個(gè)端口上。連接PC機(jī)的目的是為了進(jìn)行MAC地址表方面的實(shí)驗(yàn),當(dāng)然此處的PC機(jī)也可以便用路由器來代替。
  
  圖示中略去了作為超級(jí)終端的PC機(jī)及控制電纜。
  

  4. 實(shí)驗(yàn)配置及監(jiān)測(cè)結(jié)果
  
  按實(shí)驗(yàn)2的圖示把設(shè)備連接好后,給所有設(shè)備加電,開始實(shí)驗(yàn)。
  
  監(jiān)測(cè)清單3-2記錄了本實(shí)驗(yàn)的操作。
  
  監(jiān)測(cè)清單3-2配置端口屬性及MAC地址表
  
  第1段:配置端口屬性及MAC地址表
  SW1912#conf t
  Enter configuration commands, one per line. End with CNTL/Z
  SW1912(config)#mterface ethernet 0/1
  SW1912(config-if)#?
  Interface configuration commands:
  cdp Cdp interface subcommands
  description Interface specific description
  duplex Con-figureduplexOperation
  exit Exit from interface configuration mode
  help Description of the interactive help system
  no Negate a conanaand or set its defaults
  port Perform switch port configuration
  shutdown Shutdown the selected interface
  spantree Spanning tree subsystem
  vlan-membership VLAN membership configuration
  SW1912(config-if)#description PC_1
  SW1912(config-if)#duplex ?
  auto Enable auto duplex-configuration
  full Force full duplex operation
  full-flow-control Force full duplex with flow contro1
  half Forcehalfduplexoperation
  SW 1912(config-if)#duplex full
  SW1912(config-if)#port secure ?
  max-mac-count Maxirnum number of addresses allowed on the port
  
  SW1912(config-if)#port secure max-mac-couist 1
  SW1912(config-if)#end
  SW1912#sh mac-address-table ?
  address MAC address
  aging-time Show aging time of dynamic entries
  dynamic Show 802.1 d dynamic address
  interface Interface name
  permanent Show 802.1 d permanent address
  restricted Show 802. 1 d restricted static addresses
  security Show addressing security information
  
  SW1912#sh mac-address-table security
  Action upon address violation : Suspend
  Interface Addressing Security Address Table Size Clear Address
  Ethernet 0/1 Enabled 1 No
  Ethernet 0/2 Disabled N/A No
  Ethernet 0/3 Disabled N/A No
  Ethernet 0/4 Disabled N/A No
  Ethernet 0/5 Disabled N/A No
  Ethernet 0/6 Disabled N/A No
  Ethernet 0/7 Disabled N/A No
  Ethernet 0/8 Disabled N/A No
  Ethernet 0/9 Disabled N/A No
  Ethernet 0/10 Disabled N/A No
  Ethernet 0/11 Disabled N/A No
  Ethernet 0/12 Disabled N/A No
  Ethernet 0/25 Disabled N/A No
  FastEthernet 0/26 Disabled N/A No
  FastEthernet 0/27 Disabled N/A No
  SW1912#
  第2段:配置和查看MAC地址表
  SW1912(config)#mac-address-table ?
  aging-time Aging time of dynamic addresses
  permanent Configure a permanent address
  restricted Configure a restricted static address
  SW1912(config)#mac-address-table aging-time ?
  SW1912(config)#mac-address-table permanent ?
  H.H.H 48 bit hardware address
  SW1912(config)#mac"address-tabae permanent 0000.0c10.aabb ?
  Ethernet IEEE 802.3
  FastEthernet FastEthernet IEEE 802.3
  SW1912(config)#mac-address-table permanent 0000.0cl0.aabb e0/3
  
  SW1912(config)#mac-address-table restricted static OOOO.Oc11.aacc e0/6 e0/7
  
  SW1912(config)#end
  SW1912#sh mac-address-table
  Number of permanent addresses : 1
  Number of restricted static addresses : 1
  Number of dynamic addresses : 2
  Address Dest Interface Type Source Interface List
  ---------------------------------------
  0000.0C10.AABB Ethernet0/3 Permanent All
  0000.0C11.AACC Ethernet0/6 Static Et0/7
  0000.0C8E.CDD2 Ethernet0/11 Dynamic All
  0000.0C76.F737 Ethernet0/9 Dynamic All
  SW1912#clear mac-addr restric static
  SW1912#sh mac-addr
  Number of permanent addresses:1
  Number of restricted static add resses:0
  Number of dynamic addresses:2
  Address Dest Interface Type Source Interface List
  ---------------------------------------------------------------------
  0000.0C10.AABB Ethernet0/3 Permanent All
  0000.0C8E.CDD2 Ethernet0/11 Dynamic All
  0000.0C76.F737 Ethernet0/9 Dynamic All
  (1)進(jìn)入接口配置模式。鍵入問號(hào),列出所有此接口下可以進(jìn)行的設(shè)置命令和簡(jiǎn)短的說明。
  (2)使用description PC_1命令設(shè)置了EO/1接口的描述為"PC_1",這樣在交換機(jī)上就可以方便地查到與對(duì)應(yīng)端口相連的設(shè)備是什么。
  (3)一個(gè)端口的雙工模式可以分為由duplex?命令所列出的幾種:
  auto:自動(dòng)匹配雙工模式;
  full:強(qiáng)制為全雙工模式;
  full-flow-control:帶流量控制的全雙工模式;
  half:強(qiáng)制為半雙工模式。
  (4)端口安全性命令ponsecufe啟動(dòng)了端口安全特性。缺省情況下,可最多有132個(gè)目的MAC地址與設(shè)置了port secure命令的端口相對(duì)應(yīng)。該端口所對(duì)應(yīng)的MAC地址在MAC地址中(MAC Address Table)不會(huì)以動(dòng)態(tài)類型出現(xiàn),而是自動(dòng)轉(zhuǎn)換成為靜態(tài)類型,直到達(dá)到所設(shè)定的最大值(缺省為132)時(shí)為止。到達(dá)最大值之后,新的MAC地址不再被接收。
  (5)在接口配置模式下發(fā)出的port sccure max-mac-count命令限定對(duì)應(yīng)本端口的MAC地址的最大數(shù)量,實(shí)驗(yàn)中設(shè)置為1,即只答應(yīng)1個(gè)MAC地址通過此端口連入網(wǎng)絡(luò)。
  (6)使用show mac-address-table security命令可以查看被設(shè)置了安全性的端口的狀態(tài),可以看到端口EO/1己經(jīng)被設(shè)置為安全端口,其地址表大小為1。
  (7)在第2段中,演示了對(duì)MAC地址表的有關(guān)配置。
  
  在全局配置模式下,有關(guān)MAC地址表的配置有3個(gè):即超時(shí)時(shí)間、永久地址和限制性地址。
  
  (8)使用mac、address-table aging-time命令可以設(shè)置MAC地址表超時(shí)時(shí)間,交換機(jī)學(xué)習(xí)到的動(dòng)態(tài)MAC地址的超時(shí)時(shí)間缺省為300s,可以通過命令更改這一數(shù)值。
  (9)mac、address-table permanent 0000.0c10.aabbe0/3命令對(duì)于端口e0/3設(shè)置了1個(gè)靜態(tài)MAC地址,這個(gè)地址永久存在于MAC地址表中。不會(huì)超時(shí),所有的端口均可轉(zhuǎn)發(fā)以太網(wǎng)幀給e0/3端口。
  (10)所謂限制性靜態(tài)(restricted static)地址是在永久地址的基礎(chǔ)上,同時(shí)限制了源端口,其安全性更高。
  通過mac-address-table restricted static 0000.0c11.aacc e0/6e0/7命令設(shè)置對(duì)于E0/6端口的靜態(tài)MAC地址為0000.0c11.aacc,其限制性端口為E0/7,即只有E0/7端口可以轉(zhuǎn)發(fā)以太網(wǎng)幀給這個(gè)MAC地址。
  (1l)show mac-address-table命令用來查看整個(gè)MAC地址表。可以看到,永久地址有1個(gè),設(shè)置在E0/3端口上;限定性靜態(tài)地址有1個(gè),設(shè)置的目標(biāo)端口為E0/6,源端口為E0/7;動(dòng)態(tài)類型的MAC地址有2個(gè)。分別是PC1和PC2網(wǎng)卡上的MAC地址。
  (12)用clear mac-address restric static命令清除了限定性靜態(tài)地址之后,show mac-address-table顯示限定性靜態(tài)地址已不在MAC地址表中出現(xiàn)。


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 新竹市| 镇宁| 水富县| 合江县| 玛曲县| 鄂尔多斯市| 固始县| 封开县| 左权县| 古交市| 天长市| 镇康县| 八宿县| 白玉县| 巴楚县| 福州市| 布拖县| 石屏县| 大同市| 西藏| 汽车| 阜城县| 璧山县| 黔东| 德昌县| 防城港市| 岳阳县| 沐川县| 红安县| 保康县| 天峨县| 定结县| 富源县| 盐山县| 襄汾县| 宜春市| 泰州市| 岫岩| 金平| 临西县| 铜陵市|