亚洲一级免费看,特黄特色大片免费观看播放器,777毛片,久久久久国产一区二区三区四区,欧美三级一区二区,国产精品一区二区久久久久,人人澡人人草

思科認(rèn)證

思科交換機(jī)基本配置命令

時(shí)間:2024-10-04 12:30:31 思科認(rèn)證 我要投稿
  • 相關(guān)推薦

思科交換機(jī)基本配置命令大全

  CISCO交換機(jī)有什么基本配置命令呢?下面yjbys小編為大家分享最新思科交換機(jī)配置命令大全,希望對(duì)大家學(xué)習(xí)思科認(rèn)證有所幫助!

  CISCO交換機(jī)基本配置:Console端口連接

  用戶模式hostname# ;

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

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

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

  switch>enable ;進(jìn)入特權(quán)模式

  switch#config terminal ;進(jìn)入全局配置模式

  switch(config)#hostname csico ;設(shè)置交換機(jī)的主機(jī)名

  switch(config)#enable secret csico1 ;設(shè)置特權(quán)加密口令

  switch(config)#enable password csico8 ;設(shè)置特權(quán)非密口令

  switch(config)#line console 0 ;進(jìn)入控制臺(tái)口

  switch(config-line)#line vty 0 4 ;進(jìn)入虛擬終端

  switch(config-line)#login ;虛擬終端允許登錄

  switch(config-line)#password csico6 ;設(shè)置虛擬終端登錄口令csico6

  switch#exit ;返回命令

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

  switch#vlan database ;進(jìn)入VLAN設(shè)置

  switch(vlan)#vlan 2 ;建VLAN 2

  switch(vlan)#vlan 3 name vlan3 ;建VLAN 3并命名為vlan3

  switch(vlan)#no vlan 2 ;刪vlan 2

  switch(config)#int f0/1 ;進(jìn)入端口1

  switch(config)#speed ? 查看speed命令的子命令

  switch(config)#speed 100 設(shè)置該端口速率為100mb/s (10/auto)

  switch(config)#duplex ? 查看duplex的子命令

  switch(config)#duplex full 設(shè)置該端口為全雙工(auto/half)

  switch(config)#description TO_PC1 這是該端口描述為TO_PC1

  switch(config-if)#switchport access vlan 2 ;當(dāng)前端口加入vlan 2

  switch(config-if)#switchport mode trunk ;設(shè)置為trunk模式(access模式)

  switch(config-if)#switchport trunk allowed vlan 1,2 ;設(shè)置允許的vlan

  switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan 中繼

  switch(config)#vtp domain vtpserver ;設(shè)置vtp域名相同

  switch(config)#vtp password ;設(shè)置發(fā)vtp密碼

  switch(config)#vtp server ;設(shè)置vtp服務(wù)器模式

  switch(config)#vtp client ;設(shè)置vtp客戶機(jī)模式

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

  switch(config)#interface vlan 1 ;進(jìn)入vlan 1

  switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;設(shè)置IP地址

  switch(config)#ip default-gateway 192.168.1.6 ;設(shè)置默認(rèn)網(wǎng)關(guān)

  switch(config)#ip domain-name cisco.com 設(shè)置域名

  switch(config)#ip name-server 192.168.1.18 設(shè)置域名服務(wù)器

  switch(config)#mac-address-table? 查看mac-address-table的子命令

  switch(config)#mac-address-table aging-time 100 設(shè)置超時(shí)時(shí)間為100ms

  switch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 加入永久地址在f0/3端口

  switch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 加入靜態(tài)地址目標(biāo)端口f0/6源端口f0/7

  switch(config)#end

  switch#show mac-address-table 查看整個(gè)MAC地址表

  switch#clear mac-address-table restricted static 清除限制性靜態(tài)地址

  交換機(jī)顯示命令:

  switch#write ;保存配置信息

  switch#show vtp ;查看vtp配置信息

  switch#show run ;查看當(dāng)前配置信息

  switch#show vlan ;查看vlan配置信息

  switch#show interface ;查看端口信息

  switch#show int f0/0 ;查看指定端口信息

  switch#show int f0/0 status;查看指定端口狀態(tài)

  switch#dir flash: ;查看閃存

  (1)模式轉(zhuǎn)換命令

  用戶模式----特權(quán)模式,使用命令"enable"

  特權(quán)模式----全局配置模式,使用命令"config t"

  全局配置模式----接口模式,使用命令"interface+接口類型+接口號(hào)"

  全局配置模式----線控模式,使用命令"line+接口類型+接口號(hào)"

  注:

  用戶模式:查看初始化的信息.

  特權(quán)模式:查看所有信息、調(diào)試、保存配置信息

  全局模式:配置所有信息、針對(duì)整個(gè)路由器或交換機(jī)的所有接口

  接口模式:針對(duì)某一個(gè)接口的配置

  線控模式:對(duì)路由器進(jìn)行控制的接口配置

  (2)配置命令

  show running config 顯示所有的配置

  show versin 顯示版本號(hào)和寄存器值

  shut down 關(guān)閉接口

  no shutdown 打開(kāi)接口

  ip add +ip地址 配置IP地址

  secondary+IP地址 為接口配置第二個(gè)IP地址

  show interface+接口類型+接口號(hào) 查看接口管理性

  show controllers interface 查看接口是否有DCE電纜

  show history 查看歷史記錄

  show terminal 查看終端記錄大小

  hostname+主機(jī)名 配置路由器或交換機(jī)的標(biāo)識(shí)

  config memory 修改保存在NVRAM中的啟動(dòng)配置

  exec timeout 0 0 設(shè)置控制臺(tái)會(huì)話超時(shí)為0

  service password-encryptin 手工加密所有密碼

  enable password +密碼 配置明文密碼

  ena sec +密碼 配置密文密碼

  line vty 0 4/15 進(jìn)入telnet接口

  password +密碼 配置telnet密碼

  line aux 0 進(jìn)入AUX接口

  password +密碼 配置密碼

  line con 0 進(jìn)入CON接口

  password +密碼 配置密碼

  bandwidth+數(shù)字 配置帶寬

  no ip address 刪除已配置的IP地址

  show startup config 查看NVRAM中的配置信息

  copy run-config atartup config 保存信息到NVRAM

  write 保存信息到NVRAM

  erase startup-config 清除NVRAM中的配置信息

  show ip interface brief 查看接口的謫要信息

  banner motd # +信息 + # 配置路由器或交換機(jī)的描素信息

  description+信息 配置接口聽(tīng)描素信息

  vlan database 進(jìn)入VLAN數(shù)據(jù)庫(kù)模式

  vlan +vlan號(hào)+ 名稱 創(chuàng)建VLAN

  switchport access vlan +vlan號(hào) 為VLAN為配接口

  interface vlan +vlan號(hào) 進(jìn)入VLAN接口模式

  ip add +ip地址 為VLAN配置管理IP地址

  vtp+service/tracsparent/client 配置SW的VTP工作模式

  vtp +domain+域名 配置SW的VTP域名

  vtp +password +密碼 配置SW的密碼

  switchport mode trunk 啟用中繼

  no vlan +vlan號(hào) 刪除VLAN

  show spamming-tree vlan +vlan號(hào) 查看VLA怕生成樹(shù)議

  2. 路由器配置命令

  ip route+非直連網(wǎng)段+子網(wǎng)掩碼+下一跳地址 配置靜態(tài)/默認(rèn)路由

  show ip route 查看路由表

  show protocols 顯示出所有的被動(dòng)路由協(xié)議和接口上哪些協(xié)議被設(shè)置

  show ip protocols 顯示了被配置在路由器上的路由選擇協(xié)議,同時(shí)給出了在路由選擇協(xié)議中使用的定時(shí)器等信息

  router rip 激活RIP協(xié)議

  network +直連網(wǎng)段 發(fā)布直連網(wǎng)段

  interface lookback 0 激活邏輯接口

  passive-interface +接口類型+接口號(hào) 配置接口為被動(dòng)模式

  debug ip +協(xié)議 動(dòng)態(tài)查看路由更新信息

  undebug all 關(guān)閉所有DEBUG信息

  router eigrp +as號(hào) 激活EIGRP路由協(xié)議

  network +網(wǎng)段+子網(wǎng)掩碼 發(fā)布直連網(wǎng)段

  show ip eigrp neighbors 查看鄰居表

  show ip eigrp topology 查看拓?fù)浔?/p>

  show ip eigrp traffic 查看發(fā)送包數(shù)量

  router ospf +process-ID 激活OSPF協(xié)議

  network+直連網(wǎng)段+area+區(qū)域號(hào) 發(fā)布直連網(wǎng)段

  show ip ospf 顯示OSPF的進(jìn)程號(hào)和ROUTER-ID

  encapsulation+封裝格式 更改封裝格式

  no ip admain-lookup 關(guān)閉路由器的域名查找

  ip routing 在三層交換機(jī)上啟用路由功能

  show user 查看SW的在線用戶

  clear line +線路號(hào) 清除線路

  3. 三層交換機(jī)配置命令

  配置一組二層端口

  configure terminal 進(jìn)入配置狀態(tài)

  nterface range {port-range} 進(jìn)入組配置狀態(tài)

  配置三層端口

  configure terminal 進(jìn)入配置狀態(tài)

  interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-

  channel port-channel-number} 進(jìn)入端口配置狀態(tài)

  no switchport 把物理端口變成三層口

  ip address ip_address subnet_mask 配置IP地址和掩碼

  no shutdown 激活端口

  例:

  Switch(config)# interface gigabitethernet0/2

  Switch(config-if)# no switchport

  Switch(config-if)# ip address 192.20.135.21 255.255.255.0

  Switch(config-if)# no shutdown

  配置VLAN

  configure terminal 進(jìn)入配置狀態(tài)

  vlan vlan-id 輸入一個(gè)VLAN號(hào), 然后進(jìn)入vlan配態(tài),可以輸入一個(gè)新的VLAN號(hào)或舊的來(lái)進(jìn)行修改

  。

  name vlan-name 可選)輸入一個(gè)VLAN名,如果沒(méi)有配置VLAN名,缺省的名字是VLAN號(hào)前面用0填滿

  的4位數(shù),如VLAN0004是VLAN4的缺省名字

  mtu mtu-size (可選) 改變MTU大小

  例

  Switch# configure terminal

  Switch(config)# vlan 20

  Switch(config-vlan)# name test20

  Switch(config-vlan)# end

  或

  Switch# vlan database

  Switch(vlan)# vlan 20 name test20

  Switch(vlan)# exit

  將端口分配給一個(gè)VLAN

  configure terminal 進(jìn)入配置狀態(tài)

  interface interface-id 進(jìn)入要分配的端口

  switchport mode access 定義二層口

  switchport access vlan vlan-id 把端口分配給某一VLAN

  例

  Switch# configure terminal

  Enter configuration commands, one per line. End with CNTL/Z.

  Switch(config)# interface fastethernet0/1

  Switch(config-if)# switchport mode access

  Switch(config-if)# switchport access vlan 2

  Switch(config-if)# end

  Switch#

  配置VLAN trunk

  configure terminal 進(jìn)入配置狀態(tài)

  interface interface-Id 進(jìn)入端口配置狀態(tài)

  switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝ISL 或 802.1Q 或自動(dòng)協(xié)商


【思科交換機(jī)基本配置命令】相關(guān)文章:

交換機(jī)基本配置命令大全07-07

H3C交換機(jī)配置命令10-14

華為3COM交換機(jī)配置命令詳解04-11

思科交換機(jī)產(chǎn)品介紹07-18

思科最實(shí)用的技術(shù)命令大全04-02

dlink交換機(jī)配置方法07-16

Cisco路由器配置命令08-22

交換機(jī)DHCP Sever的配置「案例」07-16

CiscoIOS基本命令集07-19