网络工程师学习(一)基础命令

>这里是用户模式,目的其实就是只能查看不能配置
# 特权模式,用于查看,不能修改,但是能查看一切信息,他还可以保存删除的全局操作
保存配置的俩种办法

write
copy running-config startup-config

那么删除就是

erase flash:

擦除信息

然后就是

config terminal

这个就是 全局模式,主要用于配置,开启整体的信息,比如开启某个协议,

interface f0/0

进入接口模式 他的功能是配置接口的功能,配置这个接口的信息配置ip地址

hostname htftimegg

在去全局模式配置自己的名字

host htftimegg

也可以

ip address 192.168.1.1 255.255.255.0

配置ip和子网掩码
记住在配置ip之后

no shutdown

也就是激活端口

show 用来查看的东西,

show running-config

查看当前的配置,目前正在运行的配置

show version

查看设备版本

show ip interface brief

查看当前的端口


设置密码:
分为三种密码
console的密码:

line console 0//进入console的配置
telnet ssh的密码:

用户进入特权的密码:

enable password htftime \\设置密码htftime

工程三招:

no ip domain lookup \\关闭域名解析
no exec-timeout //关闭会话超时
logging synchronous //开启信息同步,他会半路切换你的命令集到那时如果设置这条命令就不会被切断

开启远程登录
line vty 0 4 //开启远程登录,这个0 4 代表同时可以有5个用户登录上来
然后password htftime
就是设置远程登录密码
然后login
就是开启远程登录
那么配置用户名就是

username htftime password htftime


然后再line vty 0 4
使用命令 login local
意思就是使用本地用户去登录

猜你喜欢

转载自www.cnblogs.com/HTFTIME/p/11697240.html