射精一区欧美专区|国产精品66xx|亚洲视频一区导航|日韩欧美人妻精品中文|超碰婷婷xxnx|日韩无码综合激情|特级黄片一区二区|四虎日韩成人A√|久久精品内谢片|亚洲成a人无码电影

您現(xiàn)在的位置:首頁 > IT認證 > 思科認證 >

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


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

  一、Cisco 2950交換機基本配置

  switch>

  switch>enable

  switch#

  switch#vlan database(進入vlan維護模式)

  switch(vlan)#vlan 2 name vlan2(給vlan 2命名為vlan2)

  switch(vlan)#vlan 4 name vlan4(給vlan 4命名為vlan4)

  switch(vlan)#exit(這里要注意一下,要打入exit退出才有效,不能用ctrl+z或end直接退出,因為這么不能使配置生效。

  switch#show vlan(查看vlan的配置,默認有vlan1)

  switch#configure terminal(進入全局配置模式)

  switch(config)#interface f0/1(進入fastethernet0/1接口配置模式)

  switch(config-if)#switchport mode access(這步可以省略)

  switch(config-if)#switchport access vlan 2(把該接口劃分到vlan2,記得vlan2之間有空格)

  switch(config-if)#no shutdown(激活端口)

  switch(config-if)#exit

  switch(config)#interface f0/2

  switch(config-if)#switchport mode access

  switch(config-if)#switchport access vlan 4

  switch(config-if)#no shutdown

  switch(config-if)#exit

  switch(config)#interface f0/3

  switch(config-if)#switchport mode trunk(設(shè)置此口為中繼模式)

  switch(config-if)#no shutdown

  witch(config-if)#exit(這里可以直接用ctrl+z或end直接退出到特權(quán)模式)

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

  router#configure terminal

  router(config)#interface f0/0.1(進入子接口模式)

  router(config-subif)#encapsulation dot1q 2(設(shè)置封裝類型為dot1q,它是思科特有的。此外還有isl封裝,要看該設(shè)備支不支持。數(shù)字2是vlan號)

  router(config-subif)#ip address 192.168.1.1 255.255.255.0

  router(config-subif)#exit

  router(config)#interface f0/0.2

  router(config-subif)#encapsulation dot1q 4

  router(config-subif)#ip address 192.168.3.1 255.255.255.0

  router(config-subif)#exit

  router(config)#interface f0/0

  router(config-if)#no shutdown

  router(config-if)#^z

  router#show running-config

  router#copy running-config startup-config

  三。給PC1,PC2設(shè)置好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、將設(shè)備分組,并使能支持的各種SNMP版本

  Switch(config)#snmp-server group qycx123 v1

  Switch(config)#snmp-server group qycx 123 v2c

  Switch(config)#snmp-server group qycx123 v3 noauth

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

  Switch(config)#snmp-server community qycx123 ro

  Switch(config)#snmp-server community qycx123 rw

  4、保存交換機配置

  Switch#copy run start

相關(guān)文章

無相關(guān)信息
更新時間2022-09-16 10:00:15【至頂部↑】
聯(lián)系我們 | 郵件: | 客服熱線電話:4008816886(QQ同號) | 

付款方式留言簿投訴中心網(wǎng)站糾錯二維碼手機版

電話:
付款方式   |   給我留言   |   我要糾錯   |   聯(lián)系我們