问小白 wenxiaobai
资讯
历史
科技
环境与自然
成长
游戏
财经
文学与艺术
美食
健康
家居
文化
情感
汽车
三农
军事
旅行
运动
教育
生活
星座命理

H3C交换机的配置文件导入

创作时间:
作者:
@小白创作中心

H3C交换机的配置文件导入

引用
CSDN
1.
https://blog.csdn.net/Teresa44/article/details/138144861

本文将详细介绍如何在H3C交换机上导入配置文件。通过FTP上传配置文件并指定设备下次启动时使用的配置文件,是网络管理员需要掌握的基本技能。

一、配置FTP上传文件

  1. 用一条console线连接交换机的console接口,登录到交换机内
  2. 用一根网线将交换机与PC相连,配置一个ip地址给该端口
  3. 配置IP:创建一个vlan,将端口划分给该vlan中,给该vlan配置IP地址
    [H3C]vlan 18
    [H3C-vlan18]quit
    [H3C]int g1/0/1
    [H3C-GigabitEthernet1/0/1]port link-type access
    [H3C-GigabitEthernet1/0/1]port access vlan 18
    [H3C-GigabitEthernet1/0/1]quit
    [H3C]int Vlan-interface 18
    [H3C-Vlan-interface18]ip address 192.168.0.1 24
    
  4. PC端配置
    设置虚拟网卡IP地址
  5. 测试连通性(需要关闭电脑的防火墙)
  6. PC端搭建FTP服务器
    启动服务——>添加一个成员(账号、密码)
  7. 交换机登录FTP服务
    ftp 192.168.0.2
    输入刚刚在PC端配置的FTP服务器的账号和密码
    将配置文件复制到FTP服务器的文件夹
    ftp>get startup.cfg(文件名称要对应)
    ftp>quit
    dir //查看上传的文件是否存在
    

二、指定设备下次启动配置文件

  1. startup saved-configuration startup.cfg main #配置主文件
    Please wait … Done!
    
  2. startup saved-configuration startup.cfg backup #备份文件下次启动的顺序
  3. dis startup #看配置主次文件是否生效
  4. Current startup saved-configuration file: NULL
    Next main startup saved-configuration file: flash:/startup.cfg
    Next backup startup saved-configuration file: flash:/startup.cfg
  5. save #保存以上操作
    The current configuration will be written to the device. Are you sure? [Y/N]:y
    Please input the file name(*.cfg)[flash:/startup.cfg]
    (To leave the existing filename unchanged, press the enter key):
    flash:/startup.cfg exists, overwrite? [Y/N]:n #注意n
    
  6. reboot #重新启动
    Start to check configuration with next startup configuration file, please wait.
    …DONE!
    This command will reboot the device. Current configuration will be lost in next
    startup if you continue. Continue? [Y/N]:y
    
    重启过程非常慢,需要耐心等待!
© 2023 北京元石科技有限公司 ◎ 京公网安备 11010802042949号