【千鋒】網(wǎng)絡(luò)安全300集全套視頻教程(web安全/滲透測(cè)試/黑客攻防/信息安全/

Ethernet??10Mb/s
FastEthernet?100Mb/s
GigabitEthernet?1000Mb/s
TenGigabitEthernet?10000Mb/s
E
F
G
TE
f1/4
g0/3
0: 模塊號(hào)
3: 接口號(hào)
接口速率自適應(yīng):1000/100/10M自適應(yīng)
速率工作模式可以為10,100,1000任何一種狀態(tài)
端口狀態(tài):up/down
down3種可能
1)人工down掉
2)速率不匹配
3)雙工模式不匹配
???單工、半雙工、全雙工
思科命令
1)用戶模式
switch>
可以查看交換機(jī)的基本簡(jiǎn)單信息,且不能做任何修改配置!
2)特權(quán)模式
switch>enable
switch#
可以查看所有配置,但不能修改配置
但可以做測(cè)試,保存,初始化等操作
3)全局配置模式
switch#con t
switch(config)#
默認(rèn)不能查看配置
可以修改配置,且全局生效!!
4)接口配置模式
switch(config)#int f0/1
switch(config-if)#
默認(rèn)不能查看配置
但可以修改配置,且對(duì)該端口生效
5)console口/線/控制臺(tái)模式:
line con 0
默認(rèn)不能查看配置
但可以修改配置,且對(duì)console口生效!??!
2.exit 退出一級(jí)
??end 直接退到特權(quán)模式
3.?的用法
4.配置主機(jī)名
conf t
hostname 設(shè)備名
5.設(shè)置用戶密碼
line con 0
password 密碼
login
exit
6.快捷鍵
ctrl+u:快速刪除光標(biāo)前所有字符
ctrl+a:快速定位光標(biāo)到行尾
ctrl+e:快速定位到光標(biāo)行尾
7.在內(nèi)存中存在一個(gè)文件:
running-config
第一次開機(jī),系統(tǒng)會(huì)在內(nèi)存中自動(dòng)創(chuàng)建一個(gè)新的
干凈的running-config
8.保存配置
en
copy running-config startup-config
或
write
9.交換機(jī)開機(jī)動(dòng)作:
先去硬盤中查找startup-config是是否存在
如果不存在,在內(nèi)存中創(chuàng)建新的run
如果存在,則復(fù)制到內(nèi)存中并改名為running-config
10.查看running-config配置
show running-config
show run
11.查看startup-config配置
show startup-config
12.重啟
reload
13.配置特權(quán)密碼
conf t
enable password 密碼(明文)
enable secret 密碼 (密文)
14.查看MAC地址表:
show mac-address-table
15.查看接口狀態(tài)列表:
show ip int brief
16.手工開啟接口
no shutdown
17.do的用法
其他模式加do空格可以強(qiáng)制使用特權(quán)模式的命令
18.刪除配置
1)在哪配置的,就在哪刪除!
2)命令前加no空格
3)原命令中有參數(shù),并且參數(shù)具有唯一性,則
???刪除時(shí)不需要加參數(shù)
如:
??conf t
??hostname?sw1
??
??conf t
??no hostname
18.刪除配置
1)在哪配置的,就在哪刪除!
2)命令前加no空格
3)原命令中有參數(shù),并且參數(shù)具有唯一性,則
???刪除時(shí)不需要加參數(shù)
如:
??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.開啟遠(yuǎn)程控制
組合一:
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 )生成密鑰對(duì)!?。≈贿m合ssh
line vty 0 4
?transport input telnet/ssh/none/all
?login local
?exit
username?賬號(hào)?password 密碼
22.為交換機(jī)配置管理IP
?conf t
?int vlan 1
?ip add 10.1.1.253 255.255.255.0?
?no shut
23.為交換機(jī)配置網(wǎng)關(guān)
實(shí)現(xiàn)跨網(wǎng)段管理
conf t
int default-gateway ip
24.關(guān)閉自動(dòng)解析功能
conf t
no ip domain-lookup