思科保存配置的命令 思科怎么保存数据才不会丢失

圆圆 0 2026-08-08 21:01:04

本文目录cisco保存设置保存交换机上所做的设置命令为思科交换机详细配置方法和命令思科交换机密码配置介绍思科交换机的配置保存命令CISCO的交换机,进行配置后如何保存思科交换机保存设置的命令在思科模拟器上如何进行交换机的基本配置cisco2960交换机的简单配置cisco保存设置

  文件备份总是最重要的,cisco保存设置呢?我为大家带来cisco安全配置命令大全,需要的朋友可以参考下!

  这类交换机/路由器的配置保存命令是 Switch#write; 还有 Switch#copy running-config startup-config。二个都可以。

   保存到本地

  (1)你本机要接到交换机,记得交换机配置管理IP地址:192.168.117.11;

  (2)要是直连交换机的话,本机和交换机必须在同一网段:192.168.117.113,要是不在同一网 段:192.168.112.113,网络得通,也就是要有路由;

  (3)在交换机上线ping本地IP地址,一定要通;

  (4)本地安装3CDaemon软件,带有TFTP功能的软件均可,配置好download path,否则报错;

  (5)TFTP使用69端口,最好关闭防火墙软件,网络放行69端口

  这样我们就可以开始了:

  JN-SW1#copy running-config tftp #这里是copy正在运行的配置到本地

  Address or name of remote host ? 192.168.112.113 #本地的IP地址

  Destination filename ? #这里默认即可

  !!

  3327 bytes copied in 1.283 secs (2593 bytes/sec) #有感叹号和这个时间提示,就表示成功了

  这里只是保存running-config到本地,举一反三,同样也可以保存startup-config和flash中的IOS到本地,那上传就是反过来喽。

  以上内容就是关于cisco保存设置教程了,希望大家喜欢。

保存交换机上所做的设置命令为

(1) Switch#copy running-config startup-config 这个命令的意思是把当前设备的运行配置保存到flash中去,以便下一次重启后系统能够还原到当前配置。(2) switch#write 保存配置信息。

思科交换机详细配置方法和命令

思科交换机的基本配置命令学习 一、交换机口令设置: switch》enable ;进入特权模式 switch#config terminal ;进入全局配置模式 switch(config)#hostname csico ;设置交换机的主机名 switch(config)#enable secret csico1 ;设置特权加密口令 switch(config)#enable password csico8 ;设置特权非密口令 switch(config)#line console 0 ;进入控制台口 switch(config-line)#line vty 0 4 ;进入虚拟终端 switch(config-line)#login ;虚拟终端允许登录 switch(config-line)#password csico6 ;设置虚拟终端登录口令csico6 switch#exit ;返回命令 二、交换机显示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 switch#show run ;查看当前配置信息 switch#show vlan ;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息 switch#show int f0/0 status;查看指定端口状态 switch#dir flash: ;查看闪存 Cisco路由器配置命令大全网络 2010-06-26 06:43:44 阅读657 评论0 字号:大中小 订阅 . (1)模式转换命令 用户模式----特权模式,使用命令"enable" 特权模式----全局配置模式,使用命令"config t" 全局配置模式----接口模式,使用命令"interface+接口类型+接口号" 全局配置模式----线控模式,使用命令"line+接口类型+接口号" 注: 用户模式:查看初始化的信息. 特权模式:查看所有信息、调试、保存配置信息 全局模式:配置所有信息、针对整个路由器或交换机的所有接口 接口模式:针对某一个接口的配置 线控模式:对路由器进行控制的接口配置 (2)配置命令 show running config 显示所有的配置 show versin 显示版本号和寄存器值 shut down 关闭接口 no shutdown 打开接口 ip add +ip地址 配置IP地址 secondary+IP地址 为接口配置第二个IP地址 show interface+接口类型+接口号 查看接口管理性 show controllers interface 查看接口是否有DCE电缆 show history 查看历史记录 show terminal 查看终端记录大小 hostname+主机名 配置路由器或交换机的标识 config memory 修改保存在NVRAM中的启动配置 exec timeout 0 0 设置控制台会话超时为0 service password-encryptin 手工加密所有密码 enable password +密码 配置明文密码 ena sec +密码 配置密文密码 line vty 0 4/15 进入telnet接口 password +密码 配置telnet密码 line aux 0 进入AUX接口 password +密码 配置密码 line con 0 进入CON接口 password +密码 配置密码 bandwidth+数字 配置带宽 no ip address 删除已配置的IP地址 show startup config 查看NVRAM中的配置信息 copy run-config atartup config 保存信息到NVRAM write 保存信息到NVRAM erase startup-config 清除NVRAM中的配置信息 show ip interface brief 查看接口的谪要信息 banner motd # +信息 + # 配置路由器或交换机的描素信息 description+信息 配置接口听描素信息 vlan database 进入VLAN数据库模式 vlan +vlan号+ 名称 创建VLAN switchport access vlan +vlan号 为VLAN为配接口 interface vlan +vlan号 进入VLAN接口模式 ip add +ip地址 为VLAN配置管理IP地址 vtp+service/tracsparent/client 配置SW的VTP工作模式 vtp +domain+域名 配置SW的VTP域名 vtp +password +密码 配置SW的密码 switchport mode trunk 启用中继 no vlan +vlan号 删除VLAN show spamming-tree vlan +vlan号 查看VLA怕生成树议 三. 路由器配置命令 ip route+非直连网段+子网掩码+下一跳地址 配置静态/默认路由 show ip route 查看路由表 show protocols 显示出所有的被动路由协议和接口上哪些协议被设置 show ip protocols 显示了被配置在路由器上的路由选择协议,同时给出了在路由选择协议中使用 的定时器 等信息 router rip 激活RIP协议 network +直连网段 发布直连网段 interface lookback 0 激活逻辑接口 passive-interface +接口类型+接口号 配置接口为被动模式 debug ip +协议 动态查看路由更新信息 undebug all 关闭所有DEBUG信息 router eigrp +as号 激活EIGRP路由协议 network +网段+子网掩码 发布直连网段 show ip eigrp neighbors 查看邻居表 show ip eigrp topology 查看拓扑表 show ip eigrp traffic 查看发送包数量 router ospf +process-ID 激活OSPF协议 network+直连网段+area+区域号 发布直连网段 show ip ospf 显示OSPF的进程号和ROUTER-ID encapsulation+封装格式 更改封装格式 no ip admain-lookup 关闭路由器的域名查找 ip routing 在三层交换机上启用路由功能 show user 查看SW的在线用户 clear line +线路号 清除线路 四. 三层交换机配置命令 配置一组二层端口 configure terminal 进入配置状态 nterface range {port-range} 进入组配置状态 配置三层端口 configure terminal 进入配置状态 interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port- channel port-channel-number} 进入端口配置状态 no switchport 把物理端口变成三层口 ip address ip_address subnet_mask 配置IP地址和掩码 no shutdown 激活端口 例: Switch(config)# interface gigabitethernet0/2 Switch(config-if)# no switchport Switch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown 配置VLAN configure terminal 进入配置状态 vlan vlan-id 输入一个VLAN号, 然后进入vlan配态,可以输入一个新的VLAN号或旧的来进行修改

思科交换机密码配置介绍

   一.设置console密码

  》enable

  #configure trminal

  (confing)#line console 0←console口

  ①(config-line)#password (cisco)←密码

  (config-line)#login ← 一定不能少的.

  console密码设置完成

  exit

   二:设置全局密码

  enadle

  #configure terminal

  ②(config)#enable secret (class)←密码

  (config)#login

  全局密码设置完成

  exit

   三.设置远程登入(telnet)密码

  enable

  #config terminal

  (config)#line vty 0 4(0 4是口)

  ③(config-line)#password (class)←密码

  (config-lline)#login

  exit

   四.保存以上设置

  》enadle

  #copy running-config strat-config

  

思科交换机的配置保存命令

1、首先打开思科交换CLI,从特权模式进入全局配置模式,如下图所示。

2、在特权模式下可以对交换机进行命名,这样在配置多台交换机时,避免将配置写错交换机。

3、给交换机配置使能密码,进入特权模式时需要输入密码才能进入,避免设备可以被其他人员使用。

4、交换机配置VLAN,并给将端口加入到该VLAN。

5、最后使用show:查看命令,交换机的所有配置和其它相关信息都需要通过show命令查看。

CISCO的交换机,进行配置后如何保存

1、首先打开思科交换CLI,从特权模式进入全局配置模式,如下图所示。

2、在特权模式下可以对交换机进行命名,这样在配置多台交换机时,避免将配置写错交换机。

3、给交换机配置使能密码,进入特权模式时需要输入密码才能进入,避免设备可以被其他人员使用。

4、交换机配置VLAN,并给将端口加入到该VLAN。

5、最后使用show:查看命令,交换机的所有配置和其它相关信息都需要通过show命令查看。

思科交换机保存设置的命令

(1) Switch#copy running-config startup-config 这个命令的意思是把当前设备的运行配置保存到flash中去,以便下一次重启后系统能够还原到当前配置。(2) switch#write 保存配置信息。

在思科模拟器上如何进行交换机的基本配置

楼主,你好\x0d\x0a\x0d\x0a在模拟器上添加思科交换机\x0d\x0a\x0d\x0a进行CLI输入\x0d\x0a\x0d\x0a用户模式hostname# ;\x0d\x0a特权模式hostname(config)# ;\x0d\x0a全局配置模式hostname(config-if)# ;\x0d\x0a\x0d\x0a交换机口令设置:\x0d\x0aswitch》enable ;进入特权模式\x0d\x0aswitch#config terminal ;进入全局配置模式\x0d\x0aswitch(config)#hostname csico ;设置交换机的主机名\x0d\x0aswitch(config)#enable secret csico1 ;设置特权加密口令\x0d\x0aswitch(config)#enable password csico8 ;设置特权非密口令\x0d\x0aswitch(config)#line console 0 ;进入控制台口\x0d\x0aswitch(config-line)#line vty 0 4 ;进入虚拟终端\x0d\x0aswitch(config-line)#login ;虚拟终端允许登录\x0d\x0aswitch(config-line)#password csico6 ;设置虚拟终端登录口令csico6\x0d\x0aswitch#exit ;返回命令\x0d\x0a交换机VLAN创建,删除,端口属性的设置,配置trunk端口,将某端口加入vlan中,配置VTP:\x0d\x0aswitch#vlan database ;进入VLAN设置\x0d\x0aswitch(vlan)#vlan 2 ;建VLAN 2\x0d\x0aswitch(vlan)#vlan 3 name vlan3 ;建VLAN 3并命名为vlan3\x0d\x0aswitch(vlan)#no vlan 2 ;删vlan 2\x0d\x0aswitch(config)#int f0/1 ;进入端口1\x0d\x0aswitch(config)#speed ? 查看speed命令的子命令\x0d\x0aswitch(config)#speed 100 设置该端口速率为100mb/s (10/auto)\x0d\x0aswitch(config)#duplex ? 查看duplex的子命令\x0d\x0aswitch(config)#duplex full 设置该端口为全双工(auto/half)\x0d\x0aswitch(config)#description TO_PC1 这是该端口描述为TO_PC1\x0d\x0aswitch(config-if)#switchport access vlan 2 ;当前端口加入vlan 2\x0d\x0aswitch(config-if)#switchport mode trunk ;设置为trunk模式(access模式)\x0d\x0aswitch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlan\x0d\x0aswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继\x0d\x0aswitch(config)#vtp domain vtpserver ;设置vtp域名相同\x0d\x0aswitch(config)#vtp password ;设置发vtp密码\x0d\x0aswitch(config)#vtp server ;设置vtp服务器模式\x0d\x0aswitch(config)#vtp client ;设置vtp客户机模式\x0d\x0a\x0d\x0a交换机设置IP地址,默认网关,域名,域名服务器,配置和查看MAC地址表:\x0d\x0aswitch(config)#interface vlan 1 ;进入vlan 1\x0d\x0aswitch(config-if)#ip address 192.168.1.1 255.255.255.0 ;设置IP地址\x0d\x0aswitch(config)#ip default-gateway 192.168.1.6 ;设置默认网关\x0d\x0aswitch(config)#ip domain-name cisco.com 设置域名\x0d\x0aswitch(config)#ip name-server 192.168.1.18 设置域名服务器\x0d\x0aswitch(config)#mac-address-table? 查看mac-address-table的子命令\x0d\x0aswitch(config)#mac-address-table aging-time 100 设置超时时间为100ms\x0d\x0aswitch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 加入永久地址在f0/3端口\x0d\x0aswitch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 加入静态地址目标端口f0/6源端口f0/7\x0d\x0aswitch(config)#end\x0d\x0aswitch#show mac-address-table 查看整个MAC地址表\x0d\x0aswitch#clear mac-address-table restricted static 清除限制性静态地址\x0d\x0a交换机显示命令:\x0d\x0aswitch#write ;保存配置信息\x0d\x0aswitch#show vtp ;查看vtp配置信息\x0d\x0aswitch#show run ;查看当前配置信息\x0d\x0a\x0d\x0aswitch#show vlan ;查看vlan配置信息\x0d\x0aswitch#show interface ;查看端口信息\x0d\x0aswitch#show int f0/0 ;查看指定端口信息\x0d\x0aswitch#show int f0/0 status;查看指定端口状态\x0d\x0aswitch#dir flash: ;查看闪存

cisco2960交换机的简单配置

  你还在为cisco2960交换机的简单配置而烦恼么?不用担心,接下来是我为大家收集的cisco2960交换机的简单配置,欢迎大家阅读:   cisco2960交换机的简单配置的方法   2950是只支持二层的交换机   支持VLAN   第1步:单击“开始”按钮,在“程序”菜单的“附件”选项中单击“超级终端”   第2步:在“名称”文本框中键入“Cisco”   第3步:在“连接时使用”下拉列表框中选择与交换机相连的计算机的串口。台式机为“com 1”,笔记本为“com 3或者com 5”。   第4步:在“波特率”下拉列表框中选择“9600”-确定.   如果通信正常的话就会出现类似于如下所示的主配置界面,并会在这个窗口中就会显示交换机的初始配置情况。   enter   enter   enter   no!   1)配置交换机姓名   switch》ena   switch#configure   enter   switch#configure terminal (进入配置状态)   Switch(config)#hostname 配置的交换机姓名 如:30FLoor-2960-1   30FLoor-2960-1(config)#end   30FLoor-2960-1#   2)配置交换机的ip   30FLoor-2960-1#configure terminal (进入配置状态)   30FLoor-2960-1(config)#interface vlan 1   30FLoor-2960-1(config)#ip address ip地址 子网掩码   例如:30FLoor-2960-1(config)#ip address 10.11.90.10 255.255.255.0   30FLoor-2960-1(config)#no shutdown   30FLoor-2960-1(config)#end   30FLoor-2960-1#   30FLoor-2960-1#   3)配置交换机的 默认网关   30FLoor-2960-1(config)#ip default-gateway 网关ip   例如:30FLoor-2960-1(config)#ip default-gateway 10.11.90.254   4)设置路由   30FLoor-2960-1(config)#ip route 0.0.0.0 X.X.X.X   5)设置console口密码   30FLoor-2960-1(config)#line console 0   30FLoor-2960-1(config-line)#password 输入密码   30FLoor-2960-1(config-line)#login   30FLoor-2960-1(config-line)#end   6)设置telnet的密码   30FLoor-2960-1(config)#line vty 0 10   30FLoor-2960-1(config-line)#password 输入密码(yuxuan)   30FLoor-2960-1(config-line)#login   30FLoor-2960-1(config-line)#end   7)设置交换机的enable密码   30FLoor-2960-1(config)#enable password 输入密码(xuan)   30FLoor-2960-1(config)#enable secret 输入密码(yuxuan)   30FLoor-2960-1(config)#end   8)将当前配置信息保存到闪存中   30FLoor-2960-1(config)#write   9)查看交换机信息   30FLoor-2960-1#   show version 查看交换机版本信息   show ip interfaces 查看交换机的ip地址   show interface vlan 1 验证管理ip地址已经配置并开启   show ip redirect 查看交换机的网关   show running-configure 查看交换机当前的配置信息   show configure 查看交换机保存的配置信息   switch#write ; 保存配置信息   switch#show vtp ; 查看vtp配置信息   switch#show run ; 查看当前配置信息   switch#show vlan ; 查看vlan配置信息   switch#show interface ; 查看端口信息   switch#show int f0/0 ; 查看指定端口信息   10)交换机基本配置步骤   1.登陆到交换机   2.进入特权模式   命令:enable   3.进入全局配置模式   命令:configure terminal   4.进入相应的配置子模式   如:接口子模式   命令:interface vlan 1 看了“cisco2960交换机的简单配置”还想看: 1. cisco2960交换机安装配置基础详解 2. Cisco 2960交换机的基础安装配置教程 3. 思科交换机基本配置实例讲解 4. 思科交换机配置教程详解 5. cisco交换机如何清空配置 6. CISCO系列交换机如何清空配置

上一篇:九九夜靖品九九:揭秘免费在线观看的幕后故事
下一篇:日韩电视剧精品解析:为何免费观看却难以抗拒?
相关文章
返回顶部小火箭