1打开思科交换cli,首先进入的是用户模式,如果要进行配置操作需要进入特权模式。switch>enableswitch#2从特权模式进入全局配置模式switch#configure terminalswitch(config)#3在特权模式下可以对交换机进行命名,这样在配置多台交换机时,避免将配置写错交换机。switch(config)#hostname c**co-sw14配置交换端口密码,登录特权模式时需要输入该密码,避免设备被其他人使用。c**co-sw1(config)#enable password c**cops:password表示密码为明文5给交换机配置使能密码,进入特权模式时需要输入密码才能进入,避免设备可以被其他人员使用。c**co-sw1(config)#enable secret c**coswitchps:secret表示密码用的密文6交换机配置vlan,并给将端口加入到该vlan:c**co-sw1(config)#vlan 2c**co-sw1(config-vlan)#name testc**co-sw1(config-vlan)#exitc**co-sw1(config)#interface fastethernet 0/1c**co-sw1(config-if)#switchport mode accessc**co-sw1(config-if)#switchport access vlan 27进入交换机某一端口switch> enableswitch#configure terminalswitch(conf)# interface fastehernet 0/1switch(conf-if)#8show:查看命令,交换机的所有配置和其它相关信息都需要通过show命令查看。switch> enableswitch# show version 察看系统中的所有版本信息switch#show vlan id 1 查看交换机有关vlan配置信息switch#show running-configure 查看交换机当前起作用的配置信息switch#show interface fastethernet 0/1 察看交换机1 接口具体配置和统计信息switch#show mac-address-table 查看mac地址转发表9交换机恢复出厂switch> enableswitch# erase startup-configureswitch# reload10telnet 远程登录设置:switch>enswitch#configure terminalswich(conf)#enable password c**co 以c**co 为特权模式密码swich(conf)#interface vlan 1 以vlan 1端口作为远程登录的接口,其他端口亦可swich(conf-if)#ip address 192.168.1.1 255.255.255.0swich(conf-if)#no shutswich(conf-if)#exitswich(conf)line vty 0 4 设置0-4 个用户可以telnet 远程登陆swich(conf-line)#password 123456swich(conf-line)#login11ssh远程登录设置:switch#conf tenter configuration commands, one per line. end with cntl/z.switch(config)#hostname c**co-sw1 交换机重新命名c**co-sw1(config)#ip domain-name c**co.com 配置域名c**co-sw1(config)#line vty 0 4c**co-sw1(config-line)#transport input ssh 登录方式为sshc**co-sw1(config-line)#exitc**co-sw1(config)#crypto key generate rsa 配置秘钥the name for the keys will be: c**co-sw1.c**co.comchoose the size of the key modulus in the range of 360 to 2048 for yourgeneral purpose keys. choosing a key modulus greater than 512 may takea few minutes.how many bits in the modulus [512]: 1024 思科推荐使用1024% generating 1024 bit rsa keys, keys will be non-exportable...[ok]end11此文章非法爬取自百度经验 20210311
ios是什么啊?是用c**co的么?还是国人开发的,要是国人弄得就好办有中文。要是其他e文的,你可以参考c**co使用说明书。你的是三层switch吧?还能调整acl?我说个大概:c**co里进入端口后输入:#access-l**t 110 permit ip xx.xx.xx.xx any any eq 80#access-l**t 110 permit ip xx.xx.xx.xx any a...