1.在基于IOS的交換機上設置主機名/系統名: switch(config)# hostname hostname 在基于CLI的交換機上設置主機名/系統名: switch(enable) set system name name-string 2.在基于IOS的交換機上設置登錄口令: switch(config)# enable passWord level 1 password 在基于CLI的交換機上設置登錄口令: switch(enable) set password switch(enable) set enalbepass
3.在基于IOS的交換機上設置遠程訪問: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交換機上設置遠程訪問: switch(enable) set interface sc0 ip-address netmask broadcast-address switch(enable) set interface sc0 vlan switch(enable) set ip route default gateway
4.在基于IOS的交換機上啟用和瀏覽CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable 為了查看Cisco鄰接設備的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交換機上啟用和瀏覽CDP信息: switch(enable) set cdp {enabledisable} module/port 為了查看Cisco鄰接設備的CDP通告信息: switch(enable) show cdp neighbors[module/port] [vlanduplexcapabilitiesdetail]
5.基于IOS的交換機的端口描述: switch(config-if)# description description-string 基于CLI的交換機的端口描述: switch(enable)set port name module/number description-string
6.在基于IOS的交換機上設置端口速度: switch(config-if)# speed{10100auto} 在基于CLI的交換機上設置端口速度: switch(enable) set port speed moudle/number {10100auto} switch(enable) set port speed moudle/number {416auto}
7.在基于IOS的交換機上設置以太網的鏈路模式: switch(config-if)# duplex {autofullhalf} 在基于CLI的交換機上設置以太網的鏈路模式: switch(enable) set port duplex module/number {fullhalf}
8.在基于IOS的交換機上配置靜態VLAN: switch# vlan database switch(vlan)# vlan vlan-num name vla
13. 在基于IOS的交換機上啟動VTP剪裁: switch# vlan database switch(vlan)# vtp PRuning 在基于CL I 的交換機上啟動VTP剪裁: switch(enable) set vtp pruning enable
14.在基于IOS的交換機上配置以太信道: switch(config-if)# port group group-number [distribution {sourcedestination}] 在基于CLI的交換機上配置以太信道: switch(enable) set port channel moudle/port-range mode{onoffdesirableauto}
18. 在基于IOS的交換機端口上啟用或禁用Port Fast 特征: switch(config-if)#spanning-tree portfast 在基于CLI的交換機端口上啟用或禁用Port Fast 特征: switch(enable) set spantree portfast {module/port}{enabledisable}
29. 配置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 …
30. 創建完數據庫后,必須在主接口上啟動LECS.命令如下: ATM(config)# interface atm number ATM(config-if)# lane config database database-name ATM(config-if)# lane config auto-config-atm-address 31. 將每個LEC配置到一個不同的ATM子接口上.命令如下: ATM(config)# interface atm number.subint multipoint ATM(config)# lane client ethernet vlan-num elan-num
32. 用show lane server 顯示LES的狀態.
33. 用show lane bus顯示bus的狀態.
34. 用show lane database顯示LECS數據庫可內容.
35. 用show lane client顯示LEC的狀態.
36. 用show module顯示已安裝的模塊列表.
37. 用物理接口建立與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
61. 要顯示HSRP路由器的狀態: router# show standby type-number group brief
62. 用命令show ip igmp確定當選的查詢器。
63. 啟動IP組播路由選擇: router(config)# ip muticast-routing
64. 啟動接口上的PIM: dalllasr1>(config-if)# ip pim {dense-modesparse-modesparse-dense-mode}
65. 啟動稀疏-稠密模式下的PIM: router# ip multicast-routing router# interface type number router# ip pim sparse-dense-mode
66. 核實PIM的配置: dallasr1># show ip pim interface[type number] [count]
67. 顯示PIM鄰居: dallasr1># show ip neighbor type number
68. 為了配置RP的地址,命令如下: dallasr1># ip pim rp-address ip-address [group-access-list-number][override]
69. 選擇一個默認的RP: dallasr1># ip pim rp-address 通告RP和它所服務的組范圍: dallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number 為治理范圍組通告RP的地址: dallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1 dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255 設定一個RP映像代理: dallasr1># ip pim send-rp-discovery scope ttl 核實組到RP的映像: dallasr1># show ip pim rp mapping dallasr1># show ip pim rp [group-namegroup-address] [mapping]
70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value設定TTL閥值: dallasr1>(config-if)# ip multicast ttl-threshold ttl-value
71. 用show ip pim neighbor顯示PIM鄰居表。
72. 顯示組播通信路由表中的各條記錄: dallasr1>show ip mroute [group-namegroup-address][scoure][summary][count][active kbps]
73. 要記錄一個路由器接受和發送的全部IP組播包: dallasr1> #debug ip mpacket [detail] [access-list][group]
74. 要在CISCO路由器上配置CGMP: dallasr1>(config-if)# ip cgmp
75.配置一個組播路由器,使之加入某一個特定的組播組: dallasr1>(config-if)# ip igmp join-group group-address
76. 關閉 CGMP: dallasr1>(config-if)# no ip cgmp
77. 啟動交換機上的CGMP: dallasr1>(enable) set cgmp enable
78. 核實Catalyst交換機上CGMP的配置情況: catalystla1>(enable) show config set prompt catalystla1> set interface sc0 192.168.1.1 255.255.255.0 set cgmp enable
85. 標志設置與顯示: R1(config)# banner motd ‘unauthorized access will be prosecuted!’
86. 設置vty訪問: R1(config)# access-list 1 permit 192.168.2.5 R1(config)# line vty 0 4 R1(config)# access-class 1 in
87. 配置HTTP訪問: Router3(config)# access-list 1 permit 192.168.10.7 Router3(config)# ip http sever Router3(config)# ip http access-class 1 Router3(config)# ip http authentication local Router3(config)# username student password cisco
88. 要啟用HTTP訪問,請鍵入以下命令: switch(config)# ip http sever
89. 在基于set命令的交換機上用setCL1啟動和核實端口安全: switch(enable) set port security mod_num/port_num…enable mac address switch(enable) show port mod_num/port_num 在基于CiscoIOS命令的交換機上啟動和核實端口安全: switch(config-if)# port secure [mac-mac-count maximum-MAC-count] switch# show mac-address-table security [type module/port]