首页 > 编程知识 正文

cisco配置命令大全,交换机和路由器的基本配置命令

时间:2023-05-06 01:19:58 阅读:56316 作者:4081

Cisco IOS工作模式可分为用户模式、特权用户模式、全局配置模式、接口配置模式

用户模式:显示交换机信息,简单测试命令——http://www.Sina.com/http://www.Sina.com/:交换机配置信息——http://www.Sina 显示和管理配置交换机的总体参数—— switchenable用于配置交换机的接口参数—— 特权用户模式

http://www.Sina.com/http://www.Sina.com /

routerenablerouter # conft router (config ) # hostnamealtanthq http://www.Sina.com /

显示保存在s1#showconfigureflash中的配置显示s1#showrunning-configram中当前有效的配置switch#config terminal

S1(config-if ) #no ip address在配置命令之前显示no 全局配置模式:

进入交换机启用权限模式PAA word :密码返回交换机#禁用用户模式交换机# config t进入全局模式交换机# config # interface f

S1 (配置)接口E0/1 S1 )配置- if ) #duplex half switch(config)# interface f0/1

S1 (配置- if ) #速度自动自动机可以更换为10、100、1000

接口配置模式:

S1#configts1(config ) lineconsole0S1) config-if (passwordciscos1) config-line ) #login必须由控制台用户输入密码

S1 #复制运行配置启动配置

switch(config-if)#

s1#configts1(config ) linevty04s1) config-line (passwordciscos1) config-line ) #login,如果控制台用户必须输入密码,则为333

S1#configts1(config ) #enable [secret|password] [密码] secret允许高度加密

在3358www.Sina.com/全局模式下使用设备命名命令将所有密码另存为密文。 取消“否”的意思是以后设置的密码不再加密,不再取消加密

:

S1(config ) # banne rlogin ' authorizedpersonnelonly!'

查看配置文件:

S1(config ) #banner motd 'Welcome!'

删除配置:

管理VLAN配置和IP管理

S1#confts1(config ) VLAN10S1) config-VLAN ) exitS1 ) config ) intVLAN10S1) config-if (IP地址192.168.)。

S1(config ) enablesecretadminS1) config ) usernameadminsecretadminS1) config ) #IPdomain-namelocaladmins1) config ipsshon

S1 (配置)接口f0/18 S1 )配置- if )交换机端口配置(1)配置) #交换机端口安全是端口安全交换机端口安全管理器50最大安全地址数50 S1 (配置- if )在交换机端口安全虚拟化端口违规操作后执行S1 (配置- if ) sstick为S1 # show port-securityinterfacef0/18显示端口启用安全设置

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。