8:查看命令 show switch> enable switch# show version 察看系统中的所有版本信息 show interface vlan 1 查看交换机有关 ip 协议的配置信息 show running-configure 查看交换机当前起作用的配置信息 show interface fastethernet 0/1 察看交换机 1 接口具体配置和统计信息 show mac-address-table 查看 mac 地址表 show mac-address-table aging-time 查看 mac 地址表自动老化时间
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 {enable|disable} module/port 为了查看 Cisco 邻接设备的 CDP 通告信息: switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]
5.基于 IOS 的交换机的端口描述: switch(config-if)# description description-string 基于 CLI 的交换机的端口描述: switch(enable)set port name module/number description-string
6.在基于 IOS 的交换机上设置端口速度: switch(config-if)# speed{10|100|auto} 在基于 CLI 的交换机上设置端口速度: switch(enable) set port speed moudle/number {10|100|auto} switch(enable) set port speed moudle/number {4|16|auto}
7.在基于 IOS 的交换机上设置以太网的链路模式: switch(config-if)# duplex {auto|full|half} 在基于 CLI 的交换机上设置以太网的链路模式: switch(enable) set port duplex module/number {full|half}
14.在基于 IOS 的交换机上配置以太信道: switch(config-if)# port group group-number [distribution {source|destination}] 在基于 CLI 的交换机上配置以太信道: switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}
18. 在基于 IOS 的交换机端口上启用或禁用 Port Fast 特征: switch(config-if)#spanning-tree portfast 在基于 CLI 的交换机端口上启用或禁用 Port Fast 特征: switch(enable) set spantree portfast {module/port}{enable|disable}
28. 配置一个 ELAN 的 LES 和 BUS,可以使用下列命令: ATM (config)# interface atm number.subint multioint ATM(config-subif)# lane serber-bus ethernet elan-name
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
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-mode|sparse-mode|sparse-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-name|group-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-name|group-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]