网络设备配置命令集-常用命令

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

show show show show show show show show show show show show show show show show show show show
cdp bridge-group cgmp history line mac-address-table port spantree spantree-option spantree-template storm-control tacacs terminal tftp trunk uplink-fast usage vlan vlan-membership
非常用配置 Router(config)# Router(config)#
privilege configure level 3 username configure level 3 ping privilege
Router(config)# Router(config)# Router(config)# Router(config)# Router(config)#
Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich#
Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich#
snmp-server community xxxxx ro snmp-server community secret rw snmp-server enable traps snmp-server host x.x.x.x rw set snmp community {readonly|ready-write|read-write-all} set snmp trap {enable|disable} [all|moudle|classis|bridge|repeater |auth|vtp|ippermit|vmps|config|enti ty|stpx] set snmp trap rvcr_addr rcvr_communityenable set snmp trap set snmp trap set snmp trap set snmp trap show snmp set snmp rmon enable chassis disable chassis 192.122.173.42 public enable
clear counters [接口ID] clear interface [接口ID] clear line [number /console 0/vty number ]
vtp domain VTP域名字 vtp mode [server|client|chansport] vtp pruning enable vlan n name xxxx vlan-membership static n switchport trunk encapsulation dot1q switchport mode trunk switchport mode access switchport access vlan n interface vlan n ip address x.x.x.x 掩码
interface vlan n ip address x.x.x.x 掩码 interface vlan n ip address x.x.x.x 掩码 ip helper-address y.y.y.y
Router(config)#
Router(config)#
access-list 列表号 {permit|deny} 源 地址 源掩码 access-list 列表号 {permit|deny} 协 议 源地址 源掩码 [operator 端口号] 目的地址 目的掩码 [operator 端口号] [established] ip access-group 列表号 {列表号|列表 名 [in|out]} (no) spantree (vlan号) spantree-template n [forwardingtime] [hello-time] [max-age] [priority] [vlan]
Swich(config-if)# Swich(config-if)# Swich(config-if)# 配置VLAN Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config-if)# Swich(config-if)# Swich(config-if)# Swich(config-if)# Swich(config-if)# Swich(config)# Swich(config-if)#
mac-address-table [类型] [地址] [接 口] port secure [最大mac记数n] count
hostname 交换机名字 enable secrate yyyyyy username xxxx password yyyyyy ip address x.x.x.x 子网掩码 ip default-gateway x.x.x.x enable password level n xxxxxx line console 0 login password xxxxxx line vty 0 4 login password xxxxxx service timestamps debug uptime service timestamps debug datetime
show vtp show processes show protocols
Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich# Swich#
show memory show flash show catalyst6000 chassis-macaddress copy nvram tftp://服务器地址 文件名 (或copy start tftp) copy tftp://服务器地址 文件名 nvram (或copy tftp start) delete nvram copy run start copy start run copy run tftp copy tftp run copy tftp flash copy flash tftp erase start (或write erase)
service timestamps log uptime service timestamps log datetime no ip http server no snmp-server no ntp no cdp run no service udp-small-servers no service tcp-small-servers no ip domain-lookup no service finger
enable secret level 3 xxxx banner motd 'XXXXXXXXXXXXXXXXX’ ip http server ip http access-class 1 ip http authentication local mtu mtu尺寸 no vlan name no vlan mtu vlan database vlan vlan-id name vlan-name vlan vlan-id mtu mtu-size default interface interface-id switchport trunk native vlan vlan-
序 提示符 号 通用命令 Swich> Swich# Swich# Swich(config)# Swich#
配置命令 enable disable configure t exit setup 开机60秒内按Ctrl+Break键即可进入>或 rommon>提示符状态 ? show version show running-config show interfaces show interfaces fastethernet 0/端口 号 show interfaces status show interfaces 接口ID switchport show ip interface 接口ID show snmp hostname
Swich(config)# Swich(config-if)# 交换机基本配置模板 Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)#
interface range fastethernet 0/1-5 interface ethernet m/n description xxxxxxxxxxxx no shutdown duplex [auto|full|half|full-flowcontrol] speed 10/100/1000 no switchport switchport
standby 1 authentication secret 设置SNMP Switch(config)# Switch(config)# Switch(config)# Switch(config)#
Console>(enable) Console>(enable) Console>(enable) Console>(enable)
Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swich(config)# Swห้องสมุดไป่ตู้ch(config)# 端口配置 Swich(config)# Swich(config)# Swich(config-if)# Swich(config-if)# Swich(config-if)# Swich(config-if)# Swich(config-if)# Swich(config-if)#
x交换机基本配置模板swichconfigenablepasswordlevelnxxxxxx设置进入特权模式的口令第15级表示可以完全控制swichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfigswichconfiglineconsole0loginpasswordxxxxxxlinevty04loginpasswordxxxxxxservicetimestampsdebuguptimeservicetimestampsdebugdatetimeservicetimestampsloguptimeservicetimestampslogdatetimenoiphttpservernosnmpservernontpnocdprunnoserviceudpsmallserversnoservicetcpsmallserversnoipdomainlookupnoservicefinger为debug设置时间戳为debug设置时间戳为log设置时间戳为log设置时间戳端口配置swichconfigswichconfigswichconfigifswichconfigifinterfacerangefastethernet015interfaceethernetmndescriptionxxxxxxxxxxxxnoshutdownduplexautofullhalffullflowcontrolspeed101001000进入接口组配置状态进入指定的接口设置端口的描述开启端口swichconfigif设置接口的双工模式swichconfigif设置端口速率仅用于三层交换机上用于将交换机端口设为路由端口三层交换机上用于将交换机路由端口恢复为交换端口清除端口计时器重置某一端口的硬件逻辑swichconfigifnoswitchportswichconfigifswitchportswichconfigifswichconfigifclearcounters接口idclearinterface接口idclearl
Swich(config-if)#
trunk [auto]|[desirable]|[nonegoiate]|[of f]|[on]
设置三层交换 为VLAN分配静态IP地址 Swich(config)# Swich(config-if)# 为VLAN分配动态IP地址 Swich(config)# Swich(config-if)# Swich(config-if)# 设置访问列表
Router(config-if)# 设置生成树 Swich(config)# Swich(config)#
设置HSRP interface vlan x ip address x.x.x.x x.x.x.x no ip redirects no ip directed-broadcast standby 1 ip y.y.y.y standby 1 priority 100 standby 1 preempt
相关文档
最新文档