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

交換機路由器配置:Cisco組網(wǎng)實例

網(wǎng)絡 路由交換
本文講述了Cisco 2950交換機基本配置和路由器Cisco 2611上單臂路由的配置以及IP地址劃分這幾個知識點,這兩個設備是組網(wǎng)時經(jīng)常用到的,所以本文專門為大家總結一下。

一、Cisco 2950交換機基本配置

  1. switch> 
  2.  
  3. switch>enable  
  4.  
  5. switch#  
  6.  
  7. switch#vlan database(進入vlan維護模式)  
  8.  
  9. switch(vlan)#vlan 2 name vlan2(給vlan 2命名為vlan2)  
  10.  
  11. switch(vlan)#vlan 4 name vlan4(給vlan 4命名為vlan4)  
  12.  
  13. switch(vlan)#exit(這里要注意一下,要打入exit退出才有效,不能用ctrl+z或end直接退出,因為這么不能使配置生效!)  
  14.  
  15. switch#show vlan(查看vlan的配置,默認有vlan1)  
  16.  
  17. switch#configure terminal(進入全局配置模式)  
  18.  
  19. switch(config)#interface f0/1(進入fastethernet0/1接口配置模式)  
  20.  
  21. switch(config-if)#switchport mode access(這步可以省略)  
  22.  
  23. switch(config-if)#switchport access vlan 2(把該接口劃分到vlan2,記得vlan2之間有空格)  
  24.  
  25. switch(config-if)#no shutdown(激活端口)  
  26.  
  27. switch(config-if)#exit  
  28.  
  29. switch(config)#interface f0/2  
  30.  
  31. switch(config-if)#switchport mode access  
  32.  
  33. switch(config-if)#switchport access vlan 4  
  34.  
  35. switch(config-if)#no shutdown  
  36.  
  37. switch(config-if)#exit  
  38.  
  39. switch(config)#interface f0/3  
  40.  
  41. switch(config-if)#switchport mode trunk(設置此口為中繼模式)  
  42.  
  43. switch(config-if)#no shutdown  
  44.  
  45. witch(config-if)#exit(這里可以直接用ctrl+z或end直接退出到特權模式) 

二.在路由器Cisco 2611上的配置(單臂路由)

  1. router#configure terminal  
  2.  
  3. router(config)#interface f0/0.1(進入子接口模式)  
  4.  
  5. router(config-subif)#encapsulation dot1q 2(設置封裝類型為dot1q,它是思科特有的。此外還有isl封裝,要看該設備支不支持。數(shù)字2是vlan號)  
  6.  
  7. router(config-subif)#ip address 192.168.1.1 255.255.255.0  
  8.  
  9. router(config-subif)#exit  
  10.  
  11. router(config)#interface f0/0.2  
  12.  
  13. router(config-subif)#encapsulation dot1q 4  
  14.  
  15. router(config-subif)#ip address 192.168.3.1 255.255.255.0  
  16.  
  17. router(config-subif)#exit  
  18.  
  19. router(config)#interface f0/0  
  20.  
  21. router(config-if)#no shutdown  
  22.  
  23. router(config-if)#^z  
  24.  
  25. router#show running-config  
  26.  
  27. router#copy running-config startup-config 

三.給PC1,PC2設置好IP地址,然后用ping命名令測試!

1、配置IP地址

交換機要能夠被網(wǎng)管,必須給它標識一個管理IP地址,默認情況下CISCO交換機的VLAN 1為管理VLAN,為該VLAN配上IP 地址,交換機就可以被網(wǎng)管了。命令如下:

a、進入全局模式: Switch#configure terminal

b、進入VLAN 1接口模式:Switch(config)#interface vlan 1

c、配置管理IP地址:Switch(config-if) # ip address [A.B.C.D] [mask]

如果當前VLAN 不是管理VLAN ,只需要將上面第b處命令的vlan的號碼換成管理VLAN的號碼即可。

2、打開SNMP協(xié)議

a、進入全局模式: Switch#configure terminal

b、配置只讀的Community,產(chǎn)品默認的只讀Community名為public

Switch(config)#snmp-server community public ro

c、配置可寫的Community,產(chǎn)品默認的可寫Community名為private

Switch(config)#snmp-server community private rw

3、更改SNMP的Community密碼

a、將設備分組,并使能支持的各種SNMP版本

  1. Switch(config)#snmp-server group qycx123 v1  
  2.  
  3. Switch(config)#snmp-server group qycx 123 v2c  
  4.  
  5. Switch(config)#snmp-server group qycx123 v3 noauth 

b、分別配置只讀和可寫community 如:

  1. Switch(config)#snmp-server community qycx123 ro  
  2.  
  3. Switch(config)#snmp-server community qycx123 rw 

4、保存交換機配置

Switch#copy run start

交換機配置的常用命令讀者如果不明白可以閱讀:思科交換機常用命令總結

責任編輯:佚名 來源: 博客轉載
相關推薦

2011-07-21 13:46:09

Cisco ACE

2011-03-31 09:09:00

2009-11-26 09:56:39

Cisco路由器配置命交換機配置命令

2013-05-20 14:10:13

Cisco路由器交換機

2010-01-27 17:31:28

交換機和路由器

2009-11-27 09:44:21

Cisco路由器交換機

2010-01-11 15:31:54

Cisco交換機

2010-01-05 14:45:57

交換機與路由器

2010-08-04 13:27:07

路由器配置

2012-11-26 13:46:17

路由器交換機

2009-11-27 10:22:13

交換機和路由器

2009-12-18 13:41:07

2012-12-10 10:01:07

Cisco路由器交換機

2011-08-16 11:37:22

幀中繼

2010-01-25 11:31:16

三層交換機路由器

2009-12-11 13:31:25

CISCO路由交換機策略路由

2011-03-24 14:05:14

Nagios監(jiān)控

2017-06-01 14:33:04

交換機路由器網(wǎng)絡設備

2009-12-11 15:41:16

路由交換機配置

2010-01-12 09:03:39

華為路由器交換機
點贊
收藏

51CTO技術棧公眾號