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}
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]
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]