博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
23.2. 基础操作
阅读量:5925 次
发布时间:2019-06-19

本文共 5397 字,大约阅读时间需要 17 分钟。

23.2.1. 登陆

[root@localhost ~]# telnet 192.168.4.4Trying 192.168.4.4...Connected to 192.168.4.4.Escape character is '^]'.******************************************************************************* Copyright (c) 2004-2008 Hangzhou H3C Tech. Co., Ltd. All rights reserved.  ** Without the owner's prior written consent,                                 ** no decompiling or reverse-engineering shall be allowed.                    *******************************************************************************Login authenticationUsername:neoPassword:

23.2.2. 创建用户

 

创建用户neo密码chen,并允许telnet登陆

local-user neo password simple chen authorization-attribute level 3 service-type ssh telnet terminal service-type ftp

23.2.3. 开启SSH服务

[Netkiller]ssh server enableInfo: Enable SSH server.

测试登陆

[devops@master ~]$ ssh neo@192.168.4.4neo@192.168.4.4's password:******************************************************************************* Copyright (c) 2004-2008 Hangzhou H3C Tech. Co., Ltd. All rights reserved.  ** Without the owner's prior written consent,                                 ** no decompiling or reverse-engineering shall be allowed.                    *******************************************************************************

23.2.4. 开启FTP服务

[Netkiller]ftp server enable

23.2.5. 保存配置

[Netkiller]saveThe current configuration will be written to the device. Are you sure? [Y/N]:yPlease 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]:y Validating file. Please wait........................ Configuration is saved to device successfully.[Netkiller]

使用curl命令链接ftp列出目录

[root@localhost ~]# curl -l ftp://neo:password@192.168.4.4main.bin2003_ca.cer2003_server.pfxnavigator_ca.cernavigator_local.cerconfig.cwmpsystem.xmlstartup.cfg

使用curl查看配置文件

[root@localhost ~]# curl ftp://neo:chen@192.168.4.4/startup.cfg# version 5.20, ESS 1710# sysname Netkiller# tcp syn-cookie enable tcp anti-naptha enable tcp state closing connection-number 500 tcp state established connection-number 500 tcp state fin-wait-1 connection-number 500 tcp state fin-wait-2 connection-number 500 tcp state last-ack connection-number 500 tcp state syn-received connection-number 500# ipsec cpu-backup enable# domain default enable system# dns resolve dns proxy enable dns server 202.96.134.133# telnet server enable# port-security enable# mac-authentication domain system#vlan 1#domain system authentication lan-access local access-limit disable state active idle-cut disable self-service-url disable#pki domain navigator  crl check disable#ike proposal 1 encryption-algorithm 3des-cbc dh group5#ike peer navigator pre-shared-key cipher uqWUC2uW1wbDFIn0NObiHg==#ipsec proposal navigator encapsulation-mode transport esp authentication-algorithm sha1 esp encryption-algorithm 3des#ipsec proposal navigator1 esp authentication-algorithm sha1 esp encryption-algorithm 3des#ipsec policy-template gateway 1 ike-peer navigator proposal navigator navigator1#ipsec policy navigator 1 isakmp template gateway#dhcp server ip-pool vlan1 extended network ip range 172.16.1.30 192.168.1.200 network mask 255.255.255.0 gateway-list 172.16.1.254 dns-list 114.114.114.114 114.114.115.115 domain-name netkiller.github.io#user-group system#local-user neo password simple chen authorization-attribute level 3 service-type ssh telnet terminal service-type ftp#wlan rrm dot11b mandatory-rate 1 2 dot11b supported-rate 5.5 11 dot11g mandatory-rate 1 2 5.5 11 dot11g supported-rate 6 9 12 18 24 36 48 54#wlan service-template 1 crypto ssid http://netkiller.github.io cipher-suite tkip security-ie rsn service-template enable#wlan service-template 2 crypto ssid http://netkiller.sf.net cipher-suite ccmp security-ie rsn service-template enable#ssl server-policy chinanet pki-domain navigator#cwmp cwmp acs username netkiller password netkiller cwmp cpe inform interval enable cwmp cpe inform interval 43200 cwmp cpe username neo password neo#interface Aux0 async mode flow link-protocol ppp#interface Ethernet0/0 port link-mode route nat outbound ip address 192.168.4.4 255.255.255.0#interface NULL0#interface Vlan-interface1 ip address 172.16.1.254 255.255.255.0 dhcp server apply ip-pool vlan1#interface Ethernet0/1 port link-mode bridge#interface Ethernet0/2 port link-mode bridge#interface Ethernet0/3 port link-mode bridge#interface Ethernet0/4 port link-mode bridge#interface WLAN-BSS0 port-security port-mode psk port-security tx-key-type 11key port-security preshared-key pass-phrase 13113668890#interface WLAN-BSS1#interface WLAN-Radio2/0 service-template 1 interface wlan-bss 0#policy-based-route Ethernet0/0 permit node 0   if-match acl 2000   apply output-interface Ethernet0/0# ip route-static 0.0.0.0 0.0.0.0 Ethernet0/0 192.168.4.254# dhcp enable# ip https ssl-server-policy chinanet ip https enable# nms primary monitor-interface Ethernet0/0# load xml-configuration#user-interface aux 0user-interface vty 0 4 authentication-mode scheme#

保存配置文件到startup.cfg文件

# curl ftp://neo:chen@192.168.4.4/startup.cfg > startup.cfg  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                 Dload  Upload   Total   Spent    Left  Speed100  3450    0  3450    0     0   2852      0 --:--:--  0:00:01 --:--:--  2853

原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

你可能感兴趣的文章
【OpenCV学习】OpenMP并行化实例
查看>>
insert /*+ APPEND */
查看>>
次优二叉树
查看>>
ylbtech-Model-Account(通用账户模块设计)
查看>>
jstl格式化日期
查看>>
开源Math.NET基础数学类库使用(04)C#解析Matrix Marke数据格式
查看>>
基于HTML5手机上下滑动翻页特效
查看>>
打造自己博客(wordpress)的wap手机版本
查看>>
Floodlight 在 ChannelPipeline 图
查看>>
android下升级软件介绍
查看>>
U盘安装Ubuntu三步走
查看>>
这周,我们作前端,实现统一的过滤搜索
查看>>
gulp与webpack的区别
查看>>
打印字符的任意排列
查看>>
Struts2 OGNL
查看>>
git 使用详解-- tag打标签
查看>>
33:计算分数加减表达式的值
查看>>
jenkins maven testng selenium自动化持续集成
查看>>
乐观锁的概念
查看>>
查看Linux进程CPU过高具体的线程堆栈(不中断程序)
查看>>