欢迎光临散文网 会员登陆 & 注册

【千锋】网络安全300集全套视频教程(web安全/渗透测试/黑客攻防/信息安全/

2023-02-14 19:15 作者:余额已不足  | 我要投稿

Ethernet  10Mb/s

FastEthernet 100Mb/s

GigabitEthernet 1000Mb/s

TenGigabitEthernet 10000Mb/s


E

F

G

TE


f1/4

g0/3

0: 模块号

3: 接口号


接口速率自适应:1000/100/10M自适应

速率工作模式可以为10,100,1000任何一种状态


端口状态:up/down

down3种可能

1)人工down掉

2)速率不匹配

3)双工模式不匹配

   单工、半双工、全双工


思科命令

1)用户模式

switch>

可以查看交换机的基本简单信息,且不能做任何修改配置!

2)特权模式

switch>enable

switch#

可以查看所有配置,但不能修改配置

但可以做测试,保存,初始化等操作

3)全局配置模式

switch#con t

switch(config)#

默认不能查看配置

可以修改配置,且全局生效!!

4)接口配置模式

switch(config)#int f0/1

switch(config-if)#

默认不能查看配置

但可以修改配置,且对该端口生效

5)console口/线/控制台模式:

line con 0

默认不能查看配置

但可以修改配置,且对console口生效!!!


2.exit 退出一级

  end 直接退到特权模式


3.?的用法


4.配置主机名

conf t

hostname 设备名


5.设置用户密码

line con 0

password 密码

login

exit


6.快捷键

ctrl+u:快速删除光标前所有字符

ctrl+a:快速定位光标到行尾

ctrl+e:快速定位到光标行尾


7.在内存中存在一个文件:

running-config

第一次开机,系统会在内存中自动创建一个新的

干净的running-config


8.保存配置

en

copy running-config startup-config

write


9.交换机开机动作:

先去硬盘中查找startup-config是是否存在

如果不存在,在内存中创建新的run

如果存在,则复制到内存中并改名为running-config


10.查看running-config配置

show running-config

show run


11.查看startup-config配置

show startup-config


12.重启

reload


13.配置特权密码

conf t

enable password 密码(明文)

enable secret 密码 (密文)


14.查看MAC地址表:

show mac-address-table


15.查看接口状态列表:

show ip int brief


16.手工开启接口

no shutdown


17.do的用法

其他模式加do空格可以强制使用特权模式的命令


18.删除配置

1)在哪配置的,就在哪删除!

2)命令前加no空格

3)原命令中有参数,并且参数具有唯一性,则

   删除时不需要加参数

如:

  conf t

  hostname sw1

  

  conf t

  no hostname

18.删除配置

1)在哪配置的,就在哪删除!

2)命令前加no空格

3)原命令中有参数,并且参数具有唯一性,则

   删除时不需要加参数

如:

  conf t

  hostname sw1

  

  conf t

  no hostname


19.清空/擦除/初始化值

en

erase startup-config


20.为3层端口配IP:

int f0/0

ip add 10.1.1.254 255.255.255.0

no shut

exit


21.开启远程控制

组合一:

conf t

line vty 0 4

  transport input telnet/ssh/none/all

  password 密码

  login

  exit

组合二:

conf t


(hostname R1

ip domain-name r1.qf.com

crypto key generate rsa )生成密钥对!!!只适合ssh


line vty 0 4

 transport input telnet/ssh/none/all

 login local

 exit

username 账号 password 密码


22.为交换机配置管理IP

 conf t

 int vlan 1

 ip add 10.1.1.253 255.255.255.0 

 no shut


23.为交换机配置网关

实现跨网段管理

conf t

int default-gateway ip


24.关闭自动解析功能

conf t

no ip domain-lookup


【千锋】网络安全300集全套视频教程(web安全/渗透测试/黑客攻防/信息安全/的评论 (共 条)

分享到微博请遵守国家法律