欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

三個(gè)有用的 Switch 命令

 更新時(shí)間:2007年01月01日 00:00:00   作者:  
關(guān)心一些交換機(jī)的配置,下面說幾個(gè)有用的命令:

    1.spanning-tree portfast

    正常來說生成樹協(xié)議是保證冗余的同時(shí)避免回環(huán),但是狀態(tài)的改變需要一些延遲,而這些延遲在網(wǎng)絡(luò)中可能是不允許的,特別是連接的主機(jī),思科就有了portfast這樣的新特性,但是在每個(gè)端口配置這個(gè)命令是很痛苦的,其實(shí)可以在全局模式下配置這個(gè)命令的

    Switch(config)#spanning-tree portfast default
    這個(gè)命令就會(huì)把所有配置為access port的端口配置成正確的模式。

    2.switchport host

    該命令可以把端口配置成下列模式,省去了好多命令
    Switch(config)# interface range fa0/1 - 24
    Switch(config-if-range)# switchport host
    switchport mode will be set to access
    spanning-tree portfast will be enabled
    channel group will be disabled

    3.smartport

    smartport簡單的說就是一個(gè)宏,端口可以應(yīng)用這個(gè)宏從而簡化配置,思科缺省有下面幾個(gè)smartport模板
    Switch# show parser macro brief
    cisco-desktop
    cisco-phone
    cisco-switch
    cisco-router
    Sample-Macro

    當(dāng)然你可以自己定義
    Switch# config t
    Switch(config)# macro name Test-Macro
    Enter macro commands one per line. End with the character ‘@'.
    switchport block unicast
    switchport block multicast
    @
    具體的配置命令就不說了,思科有詳細(xì)的文檔,很好玩吧。

相關(guān)文章

最新評(píng)論