avatar
😵

春夏秋冬

等待着降临在这个世界的清晨 依旧深爱着

笔记

交换机配置命令

Oct 13, 2017

交换机命令模式

  1. 用户模式:
    Switch>
  1. 特权模式: 进入特权模式输入如下命令
    Switch> enable

特权模式

Switch#
  1. 全局配置模式: 在特权模式下输入
    Switch# config terminal(或者conf t)
全局配置模式

    Switch(config)#

设置主机名

Switch(Config)# hostname 主机名

配置特权模式密码

Switch(Config)# enable secret 密码

配置控制台密码

Switch(Config)# line con 0
Switch(Config)# password 密码
Switch(Config)# login

配置虚拟线程密码

Switch(Config)# line vty 0 15
Switch(Config)# password 密码
Switch(Config)# login

配置管理IP地址

Switch(Config)# int vlan 1
Switch(Config)# ip address 192.168.1.1 255.255.255.0   //先输入IP地址,后面加上子网掩码

远程访问方法

telnet IP地址

查看交换机操作系统版本

Switch# show version   //只能在特权模式下使用

查看配置信息

Switch# show running-config   //运行配置
Switch# show startup-config   //启动配置

保存配置信息

Switch# copy running-config startup-config   //保存配置信息到Flash存储器中

💬 Comment

Nothing

© 2016-2024 春夏秋冬