交換機配置命令的學習需要我們仔細和用心,同時還要講求方法,下面這些基礎性的東西,希望通過分類能讓大家有一個更深的認識。
交換機配置命令——VTP
為了將交換機配置成一個叢集的命令交換機,首先要給管理介面分配一個IP地址,然後使用下列命令: switch(config)# cluster enable cluster-name
為了從一條中繼鏈路上刪除VLAN,可使用下列命令:
switch(enable) clear trunk module/port vlan-range
用show vtp domain 顯示管理域的引數.
用show vtp statistics顯示管理域的VTP引數.
交換機配置命令——TrBRF
在Catalyst交換機上定義TrBRF的命令如下:
switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]
在Catalyst交換機上定義TrCRF的命令如下:
switch (enable) set vlan vlan-num [name name] type trcrf {ring hex-ring-num|decring decimal-ring-num} parent vlan-num
在建立好TrBRF VLAN之後,就可以給它分配交換機埠.對於乙太網交換,可以採用如下命令給VLAN分配埠:
switch(enable) set vlan vlan-num mod-num/port-num
命令show spantree顯示一個交換機埠的STP狀態.
交換機配置命令——LES和BUS
配置一個ELAN的LES和BUS,可以使用下列命令:
ATM (config)# interface atm nt multioint
ATM(config-subif)# lane serber-bus ethernet elan-name
配置LECS:
ATM(config)# lane database database-name
ATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-address
ATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address
ATM(lane-config-databade)# name …
建立完資料庫後,必須在主介面上啟動LECS.命令如下:
ATM(config)# interface atm number
ATM(config-if)# lane config database database-name
ATM(config-if)# lane config auto-config-atm-address
將每個LEC配置到一個不同的ATM子介面上.命令如下:
ATM(config)# interface atm nt multipoint
ATM(config)# lane client ethernet vlan-num elan-num
用show lane server 顯示LES的狀態.
用show lane bus顯示bus的狀態.
用show lane database顯示LECS資料庫可內容.
用show lane client顯示LEC的狀態.
交換機配置命令——VLAN
用物理介面建立與VLAN的連線:
router# configure terminal
router(config)# interface media module/port
router(config-if)# description description-string
router(config-if)# ip address ip-addr subnet-mask
router(config-if)# no shutdown
用中繼鏈路來建立與VLAN的連線:
router(config)# interface module/nterface
router(config-ig)# encapsulation[isl|dotlq] vlan-number
router(config-if)# ip address ip-address subnet-mask
用LANE 來建立與VLAN的連線:
router(config)# interface atm module/port
router(config-if)# no ip address
router(config-if)# atm pvc 1 0 5 qsaal
router(config-if)# atm pvc 2 0 16 ilni
router(config-if)# interface atm module/nterface multipoint
router(config-if)# ip address ip-address subnet-mask
router(config-if)# lane client ethernet elan-num
router(config-if)# interface atm module/nterface multipoint
router(config-if)# ip address ip-address subnet-name
router(config-if)# lane client ethernet elan-name
router(config-if)# …