5.接口配置 R(config)# interface type [slot_#/] port_# 进入接口子配置模式 R(config-if)# description interface_description 添加接口描述 R(config-if)# no shutdown 启用该接口 R(config)# interface loopback port_# 创建环回接口 R(config-if)# media-type aui|10baset|100baset|mii 指定该接口连接的介质类型 R(config-if)# speed 10|100|auto 指定该接口速率 R(config-if)# [no] half-duplex 指定该接口双工模式 R(config-if)# clock rate rate_in_bits_per_second 指定该DCE串行接口速率 R> show controller serial [slot_#/] port_# 验证该接口是DCE还是DTE,注意空格 R(config-if)# bandwidth rate_in_Kbps 改变该接口的带宽值 R(config-if)# ip address IP_address subnet_mask 配置该接口IP地址 R(config)# ip subnet-zero IOS12.0前默认禁用0子网,此命令为启用 R(config-if)# ip directed-broadcast IOS12.0后默认禁用定向广播,此命令为启用 R# show interfaces [type [slot_#/] port_#] 验证接口配置 R# show ip interfaces [type [slot_#/] port_#] [brief] 验证接口IP配置 6.CDP R(config)# [no] cdp run 启用/禁用CDP R(config-if)# [no] cdp enable 基于接口启用/禁用CDP R# show cdp 查看CDP状态 R# show cdp interface 查看基于接口的CDP配置 R# show cdp neighbors [detail] 查看与用户Cisco设备相连的CDP邻居的摘要/详细清单 R# show cdp entry neighbor’s_name 查看一个指定邻居的详细信息 R# show cdp traffic 查看CDP通信量的统计信息 7.路由 R(config)# ip route destination_network_# [subnet_mask] IP_address_of_next_hop_neighbor|interface_to_exit [administrative_distance] [permanent] 配置IP静态路由 R(config)# ip route 0.0.0.0 0.0.0.0 IP_address_of_next_hop_neighbor|interface_to_e
