自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

Cisco交換機基本配置和Console端口連接

網(wǎng)絡(luò) 路由交換
本文主要向大家介紹了Cisco交換機配置的一些基礎(chǔ)內(nèi)容,包括一些命令,口令和一些必會的配置和設(shè)置,因為是基礎(chǔ)內(nèi)容,所以讀者理解起來不會很費力。

交換機配置命令基礎(chǔ)

用戶模式hostname# ;

特權(quán)模式hostname(config)# ;

全局配置模式hostname(config-if)# ;

交換機口令設(shè)置:

  1. switch>enable ;進入特權(quán)模式
  2. switch#config terminal ;進入全局配置模式
  3. switch(config)#hostname csico ;設(shè)置交換機的主機名
  4. switch(config)#enable secret csico1 ;設(shè)置特權(quán)加密口令
  5. switch(config)#enable password csico8 ;設(shè)置特權(quán)非密口令
  6. switch(config)#line console 0 ;進入控制臺口
  7. switch(config-line)#line vty 0 4 ;進入虛擬終端
  8. switch(config-line)#login ;虛擬終端允許登錄
  9. switch(config-line)#password csico6 ;設(shè)置虛擬終端登錄口令csico6
  10. switch#exit ;返回命令

交換機基本配置

包括VLAN創(chuàng)建,刪除,端口屬性的設(shè)置,配置trunk端口,將某端口加入vlan中,配置VTP:

  1. switch#vlan database ;進入VLAN設(shè)置
  2. switch(vlan)#vlan 2 ;建VLAN 2
  3. switch(vlan)#vlan 3 name vlan3 ;建VLAN 3并命名為vlan3
  4. switch(vlan)#no vlan 2 ;刪vlan 2
  5. switch(config)#int f0/1 ;進入端口1
  6. switch(config)#speed ? 查看speed命令的子命令
  7. switch(config)#speed 100 設(shè)置該端口速率為100mb/s (10/auto)
  8. switch(config)#duplex ? 查看duplex的子命令
  9. switch(config)#duplex full 設(shè)置該端口為全雙工(auto/half)
  10. switch(config)#description TO_PC1 這是該端口描述為TO_PC1
  11. switch(config-if)#switchport access vlan 2 ;當(dāng)前端口加入vlan 2
  12. switch(config-if)#switchport mode trunk ;設(shè)置為trunk模式(access模式)
  13. switch(config-if)#switchport trunk allowed vlan 1,2 ;設(shè)置允許的vlan
  14. switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan 中繼
  15. switch(config)#vtp domain vtpserver ;設(shè)置vtp域名相同
  16. switch(config)#vtp password ;設(shè)置發(fā)vtp密碼
  17. switch(config)#vtp server ;設(shè)置vtp服務(wù)器模式
  18. switch(config)#vtp client ;設(shè)置vtp客戶機模式

交換機基礎(chǔ)設(shè)置

包括設(shè)置IP地址,默認(rèn)網(wǎng)關(guān),域名,域名服務(wù)器,配置和查看MAC地址表:

  1. switch(config)#interface vlan 1 ;進入vlan 1
  2. switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;設(shè)置IP地址
  3. switch(config)#ip default-gateway 192.168.1.6 ;設(shè)置默認(rèn)網(wǎng)關(guān)
  4. switch(config)#ip domain-name cisco.com 設(shè)置域名
  5. switch(config)#ip name-server 192.168.1.18 設(shè)置域名服務(wù)器
  6. switch(config)#mac-address-table? 查看mac-address-table的子命令
  7. switch(config)#mac-address-table aging-time 100 設(shè)置超時時間為100ms
  8. switch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 加入永久地址在f0/3端口
  9. switch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 加入靜態(tài)地址目標(biāo)端口f0/6源端口f0/7
  10. switch(config)#end
  11. switch#show mac-address-table 查看整個MAC地址表
  12. switch#clear mac-address-table restricted static 清除限制性靜態(tài)地址

交換機顯示命令

  1. switch#write ;保存配置信息
  2. switch#show vtp ;查看vtp配置信息
  3. switch#show run ;查看當(dāng)前配置信息
  4. switch#show vlan ;查看vlan配置信息
  5. switch#show interface ;查看端口信息
  6. switch#show int f0/0 ;查看指定端口信息
  7. switch#show int f0/0 status;查看指定端口狀態(tài)
  8. switch#dir flash: ;查看閃存

交換機的基礎(chǔ)命令的介紹就是這么多內(nèi)容,以上知識點都是新手在學(xué)習(xí)甚至思科認(rèn)證中必會的,內(nèi)容不多,希望你已經(jīng)理解。

【編輯推薦】

  1. Cisco2620路由器的基本配置
  2. Cisco ACE升級及冗余配置
  3. 網(wǎng)絡(luò)管理員必備:cisco設(shè)備配置
  4. 思科基礎(chǔ)知識:管理Cisco互聯(lián)網(wǎng)絡(luò)(1)
  5. Juniper和Cisco基于云的網(wǎng)絡(luò)實驗室
責(zé)任編輯:佚名 來源: 論壇
相關(guān)推薦

2010-03-18 17:01:52

Cisco交換機

2011-09-13 12:22:57

端口監(jiān)聽配置Cisco端口鏡像配置

2010-09-25 13:43:17

交換機端口隔離

2009-12-17 13:21:30

Cisco交換機和集線

2011-03-09 14:00:21

trunkVLAN

2010-01-05 11:35:20

交換機光纖端口

2010-01-07 14:46:39

cisco千兆交換機

2011-08-16 10:21:48

交換機端口安全

2010-03-17 14:10:09

Cisco交換機

2010-01-07 13:18:00

cisco千兆交換機

2011-04-02 17:29:12

vlan

2011-04-02 17:13:39

VTPTrunk

2010-03-22 15:28:19

Cisco交換機配置

2011-04-02 17:20:44

vlan

2011-09-13 11:02:14

cisco交換機網(wǎng)絡(luò)配置

2010-01-18 15:52:33

多層千兆交換機配置

2010-01-14 10:43:18

交換機配置交換機種類

2010-01-27 10:30:26

Cisco交換機配置

2011-08-16 09:55:37

Juniper Ex系

2010-01-07 13:10:25

交換機配置
點贊
收藏

51CTO技術(shù)棧公眾號