网络测试课中所使用的一些基本的Cisco命令
// 常用 查看版本及引导信息 show version 查看运行设置 show running-config //简写 show run 特权模式 查看开机设置 show startup-config 显示端口信息 show controllers type slot/number 拷贝命令 将配置保存到 NVRAM:copy running-config startup-config 退出 exit 保存 save 改变状态命令 进入特权命令状态 enable 退出特权命令状态 disable 进入设置对话状态 setup 进入全局设置状态 config terminal 退出全局设置状态 en 查看所有信息 configure terminal // 批量进入接口 interface range f0/1-12 // 配置 telnet 远程登录密码 Switch(config)#line vty 0 4 进入线程配置模式 Switch(config-line)#password jsj 配置 Telnet 的密码 Switch(config-line)#login 启用 Telnet 的用户名密码验证 Switch(config-line)#end // VLAN // 进入接口 配置接口为access并通过所有 Switch(config)#interface [f/g]*/* Switch(config-if)#switchport access vlan * // 进入接口 配置接口为trunk并通过所有 (config)#interface [f/g]*/* (config-if)#switchport mode trunk (config-if)#switchport trunk allowed vlan all // 三层交换 interface vlan * ip address *.*.*.* *.*.*.* // 启动 MSTP spanning-tree // 链路聚合 先创建 port group interface port-group 1 查看 创建的group show enterchannel 手动 interface range GigabitEthernet 1/0/1-2 switch(Config-Port-Range)#channel-group 1 mode on switch(Config)#interface port-channel 1 LACP自动 interface ethernet 0/0/1-2 switchA(Conifg-Port-Range)#port-group 1 mode active switchA(Config)#interface port-channel 1
评论前必须登录!
注册