交換機(jī)基礎(chǔ)知識(shí)之MLS的相關(guān)配置命令總結(jié)
MLS 分為如下三個(gè)組件:
MLS-SE:它是負(fù)責(zé)轉(zhuǎn)移和重寫(xiě)數(shù)據(jù)包功能的交換實(shí)體。MLS-SE 是位于CATALYST 交換機(jī)監(jiān)控引擎III 上的一個(gè)NETFLOW特征卡
MLS-RP:它是外接的、安裝有支持多層交換軟件的路由器上的一個(gè)路由模塊。
MLSP:它是用來(lái)建立和管理MLS-SE 和MLS-RP 之間會(huì)話(huà)的一個(gè)協(xié)議。MLSP 是RSM或是路由器通告路由變化和VLANS 或是參與MLS 的接口的MAC 地址的方法。
為了在路由處理器上進(jìn)行動(dòng)態(tài)路由配置,可以用下列IOS命令來(lái)進(jìn)行:
- router(config)# ip routing
- router(config)# router ip-routing-protocol
- router(config-router)# network ip-network-number
- router(config-router)# network ip-network-number
配置默認(rèn)路由:
switch(enable) set ip route default gateway
為一個(gè)路由處理器分配VLANID,可在接口模式下使用下列命令:
- router(config)# interface interface number
- router(config-if)# mls rp vlan-id vlan-id-num
在路由處理器啟用MLSP:
router(config)# mls rp ip
為了把一個(gè)外置的路由處理器接口和交換機(jī)安置在同一個(gè)VTP域中:
- router(config)# interface interface number
- router(config-if)# mls rp vtp-domain domain-name
查看指定的VTP域的信息:
router# show mls rp vtp-domain vtp domain name
要確定RSM或路由器上的管理接口,可以在接口模式下輸入下列命令:
router(config-if)#mls rp management-interface
要檢驗(yàn)MLS-RP的配置情況:
router# show mls rp
檢驗(yàn)特定接口上的MLS配置:
router# show mls rp interface interface number
為了在MLS-SE上設(shè)置流掩碼而又不想在任一個(gè)路由處理器接口上設(shè)置訪(fǎng)問(wèn)列表:
set mls flow [destination|destination-source|full]
為使MLS和輸入訪(fǎng)問(wèn)列表可以兼容,可以在全局模式下使用下列命令:
router(config)# mls rp ip input-acl
當(dāng)某個(gè)交換機(jī)的第3層交換失效時(shí),可在交換機(jī)的特權(quán)模式下輸入下列命令:
switch(enable) set mls enable
若想改變老化時(shí)間的值,可在特權(quán)模式下輸入以下命令:
switch(enable) set mls agingtime agingtime
設(shè)置快速老化:
switch(enable) set mls agingtime fast fastagingtime pkt_threshold
確定那些MLS-RP和MLS-SE參與了MLS,可先顯示交換機(jī)引用列表中的內(nèi)容再確定:
switch(enable) show mls include
顯示MLS高速緩存記錄:
switch(enable) show mls entry
用命令show in arp顯示ARP高速緩存區(qū)的內(nèi)容。
交換機(jī)基上關(guān)于MLS的相關(guān)配置命令就為大家現(xiàn)總結(jié)到這里,本站還會(huì)繼續(xù)為大家提供更多更精彩的內(nèi)容,也請(qǐng)讀者和我們一起互動(dòng),來(lái)和大家分享你的博文:http://bbs.51cto.com/
【編輯推薦】