欧美色欧美亚洲高清在线观看,国产特黄特色a级在线视频,国产一区视频一区欧美,亚洲成a 人在线观看中文

  1. <ul id="fwlom"></ul>

    <object id="fwlom"></object>

    <span id="fwlom"></span><dfn id="fwlom"></dfn>

      <object id="fwlom"></object>

      思科交換機(jī)學(xué)習(xí)第八課:路由器單臂路由配置實(shí)現(xiàn)vlan互通

      時(shí)間:2019-05-15 03:56:18下載本文作者:會(huì)員上傳
      簡(jiǎn)介:寫(xiě)寫(xiě)幫文庫(kù)小編為你整理了多篇相關(guān)的《思科交換機(jī)學(xué)習(xí)第八課:路由器單臂路由配置實(shí)現(xiàn)vlan互通》,但愿對(duì)你工作學(xué)習(xí)有幫助,當(dāng)然你在寫(xiě)寫(xiě)幫文庫(kù)還可以找到更多《思科交換機(jī)學(xué)習(xí)第八課:路由器單臂路由配置實(shí)現(xiàn)vlan互通》。

      第一篇:思科交換機(jī)學(xué)習(xí)第八課:路由器單臂路由配置實(shí)現(xiàn)vlan互通

      Switch>enable

      2960 Switch#configure terminal Switch(config)#vlan 2 Switch(config-vlan)#exit

      第一步 創(chuàng)建vlan Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#interface fastEthernet 0/2 Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/3

      端口劃分vlan Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fastEthernet 0/1 Switch(config-if)#switchport mode trunk

      交換機(jī)跟路由器連接的端口改為trunk Switch(config-if)#exit

      Router>enable

      開(kāi)啟路由器端口 Router#configure terminal

      Router(config)#interface fastEthernet 0/0 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#interface fastEthernet 0/0.1

      進(jìn)入子端口 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.1, changed state to up

      %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to up

      Router(config-subif)#encapsulation dot1Q 2 Router(config-subif)#ip address 192.168.1.1 255.255.255.0 Router(config-subif)#exit Router(config)#interface fastEthernet 0/0.2

      進(jìn)入子端口 Router(config-subif)# %LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up

      %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up

      Router(config-subif)#encapsulation dot1Q 3 Router(config-subif)#ip address 192.168.2.1 255.255.255.0 Router(config-subif)#end Router#show ip route

      Codes: Cstatic, IRIP, MBGP

      DEIGRP external, OOSPF inter area

      N1OSPF NSSA external type 2

      E1OSPF external type 2, EIS-IS, L1IS-IS level-2, iacandidate default, UODR

      P-periodic downloaded static route

      Gateway of last resort is not set

      C

      192.168.1.0/24 is directly connected, FastEthernet0/0.1 C

      192.168.2.0/24 is directly connected, FastEthernet0/0.2

      dot1q就是802.1q,是vlan的一種封裝方式。

      cisco模擬器中dot1Q 2是什么意思? 答

      封裝為dot1q,這個(gè)是trunk的封裝

      后面的2是VLAN ID,指的就是路由下聯(lián)的交換機(jī)上劃分的VLAN號(hào)

      第二篇:實(shí)驗(yàn)五利用三層交換機(jī)實(shí)現(xiàn)VLAN間路由總結(jié)

      實(shí)驗(yàn)5 利用三層交換機(jī)實(shí)現(xiàn)VLAN間路由

      采用單臂路由的方式實(shí)現(xiàn)VLAN間的路由具有速度慢(受到接口帶寬限制)、轉(zhuǎn)發(fā)速率低(路由器采用軟件轉(zhuǎn)發(fā),轉(zhuǎn)發(fā)速率比采用硬件轉(zhuǎn)發(fā)方式的交換機(jī)慢)的缺點(diǎn),容易產(chǎn)生瓶頸,所以現(xiàn)在的網(wǎng)絡(luò)中,一般都采用三層交換機(jī),以三層交換的方式來(lái)實(shí)現(xiàn)VLAN間的路由。

      三層交換機(jī),本質(zhì)上就是帶有路由功能的二層交換機(jī),我們可以將它簡(jiǎn)單地看成是一臺(tái)路由器和一臺(tái)二層交換機(jī)的疊加。三層交換機(jī)是將二層交換機(jī)和路由器兩者的優(yōu)勢(shì)有機(jī)而智能化地結(jié)合起來(lái),它可在各個(gè)層次提供線速轉(zhuǎn)發(fā)性能。在一臺(tái)三層交換機(jī)內(nèi),分別設(shè)置了交換機(jī)模塊和路由器模塊;而內(nèi)置的路由模塊與交換模塊類似,也使用ASIC硬件處理路由。因此,與傳統(tǒng)的路由器相比,三層交換機(jī)可以實(shí)現(xiàn)高速路由,并且,路由與交換模塊是匯集鏈接的,由于是內(nèi)部鏈接,可以確保相當(dāng)大的寬帶。

      由于在三層交換機(jī)上。IP路由功能是默認(rèn)開(kāi)啟的,因此在特權(quán)模式下,通過(guò)如下步驟,便可以配置SVI(交換虛擬接口)接口實(shí)現(xiàn)VLAN間的路由:

      1.Switch#configure terminal

      進(jìn)入全局配置模式。

      2.Switch(config)#interface vlan vlan-id

      進(jìn)入SVI接口配置模式。

      3.Switch(config-if)#ip address ip-address mask

      給VLAN的SVI接口配置IP地址。這些IP地址將作為各個(gè)VLAN內(nèi)主機(jī)的網(wǎng)關(guān),并且,這些SVI接口所在的網(wǎng)段也會(huì)作為直連路由出現(xiàn)在三層交換機(jī)的路由表中。

      直連路由是指:為三層交設(shè)備的接口配置IP地址,并且激活該端口,三層設(shè)備會(huì)自動(dòng)產(chǎn)生該接口IP所在網(wǎng)段的直連路由信息。

      SVI是指:為交換機(jī)中得VLAN創(chuàng)建虛擬接口,并且配置IP地址。4.Switch(config-if)#end 回到特權(quán)命令模式。

      5.Switch#show running-config 檢查一下剛才的配置是否正確。6.Switch#show ip route 檢查配置SVI接口所在的網(wǎng)段是否已經(jīng)出現(xiàn)在路由表中。注意:只有當(dāng)VLAN內(nèi)有激活的接口時(shí),即有主機(jī)連入該VLAN時(shí),該VLAN的SVI接口所在的網(wǎng)段才會(huì)出現(xiàn)在路由表中。

      7.如果需要保存剛才的配置結(jié)果,可以繼續(xù)使用write命令或者copy命令保存配置。在交換機(jī)網(wǎng)絡(luò)中,通過(guò)VLAN對(duì)一個(gè)物理網(wǎng)絡(luò)進(jìn)行邏輯劃分,不同的VLAN之間無(wú)法直接訪問(wèn)的,必須通過(guò)三層的路由設(shè)備進(jìn)行連接。一般利用路由器或三層交換機(jī)來(lái)實(shí)現(xiàn)不同VLAN之間的互相訪問(wèn)。三層交換機(jī)和路由器具備網(wǎng)絡(luò)層的功能,能夠根據(jù)數(shù)據(jù)的IP包頭信息,進(jìn)行選路和轉(zhuǎn)發(fā),從而實(shí)現(xiàn)不同網(wǎng)段之間的訪問(wèn)。

      三層交換機(jī)實(shí)現(xiàn)VLAN互訪的原理是,利用三層交換機(jī)的路由功能,通過(guò)識(shí)別數(shù)據(jù)包的IP地址,查找路由表進(jìn)行選路轉(zhuǎn)發(fā)。三層交換機(jī)利用直連路由可以實(shí)現(xiàn)不同VLAN之間的互相訪問(wèn)。三層交換機(jī)給接口配置IP地址,采用SVI的方式實(shí)現(xiàn)VLAN間互聯(lián)。

      實(shí)驗(yàn)中必須注意的事項(xiàng):(1)、兩臺(tái)交換機(jī)之間連接的端口應(yīng)該設(shè)置為tag vlan模式。(2)、為SVI端口設(shè)置IP地址后,一定要使用no shutdown命令進(jìn)行激活,否則無(wú)法正常使用。

      (3)、如果VLAN內(nèi)沒(méi)有激活端口,相應(yīng)VLAN的SVI端口將無(wú)法被激活。(4)、需要設(shè)置PC的網(wǎng)關(guān)為相應(yīng)VLAN的SVI接口地址。

      這次的實(shí)驗(yàn)跟實(shí)驗(yàn)三非常相似,只是多了“在三層交換機(jī)上配置SVI端口”這一步。

      第三篇:成都大學(xué)教學(xué)用思科交換機(jī)路由器配置命令

      成都大學(xué)思科路由器教學(xué)資料 思科Cisco交換機(jī)、路由器設(shè)置命令 Lzshihj_tz2f_3550

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

      switch>enable ;進(jìn)入特權(quán)模式 switch#config terminal ;進(jìn)入全局配置模式 switch(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名

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

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

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

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

      switch(config-line)#login ;允許登錄

      switch(config-line)#password xx ;設(shè)置登錄口令xx switch#exit ;返回命令

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

      switch#vlan database ;進(jìn)入VLAN設(shè)置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;刪vlan 2 switch(config)#int f0/1 ;進(jìn)入端口1 switch(config-if)#switchport access vlan 2 ;當(dāng)前端口1加入VLAN 2

      switch(config-if)#switchport mode trunk ;設(shè)置為干線 switch(config-if)#switchport trunk allowed vlan 1,2;設(shè)置允許的vlan switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan中繼 switch(config)#vtp domain ;設(shè)置發(fā)vtp域名 switch(config)#vtp password switch(config)#vtp mode server switch(config)#vtp mode client

      交換機(jī)設(shè)置IP地址:

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

      switch(config-if)#ip address ;添加遠(yuǎn)程登錄IP switch(config)#ip default-gateway ;添加默認(rèn)網(wǎng)關(guān)

      switch#dir flash: ;查看內(nèi)存

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

      switch#write ;寫(xiě)入保存 switch#show vtp switch#show run ;查看當(dāng)前配置信息 switch#show vlan ;看VLAN switch#show interface ;顯示所有端口信息

      switch#show int f0/0 ;顯示端口0的信息 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 路由器顯示命令:

      router#show run ;顯示接口 router#show interface ;顯示接口 router#show ip route ;顯示路由 router#show cdp nei ;看鄰居 router#reload

      ;重新起動(dòng)

      設(shè)置口令:

      router>enable ;進(jìn)入特權(quán)模式 router#config terminal ;進(jìn)入全局配置模式 router(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名

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

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

      router(config)#line console 0 ;進(jìn)控制臺(tái)口(Rs232)初始化

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

      router(config-line)#login ;允許登錄

      router(config-line)#password xx ;設(shè)置登錄口令xx router(config)#(Ctrl+z);返回特權(quán)模式 router#exit ;返回命令

      配置IP地址:

      router(config)#int s0/0 ;進(jìn)行串Serail接口

      router(config-if)#no shutdown ;起動(dòng)接口 router(config-if)#clock rate 64000 ;設(shè)置時(shí)鐘

      router(config-if)#ip address 10.1.1.1 255.255.0.0 ;設(shè)置IP地址和子網(wǎng)掩碼

      router(config-if)#ip add 10.1.1.2 255.255.0.0 second;

      router(config-if)#int f0/0.1;進(jìn)入子接口 router(config-subif.1)#ip address ; router(config-subif.1)#encapsulation dot1q ;

      router(config)#config-register 0x2142 ;跳過(guò)配置文件 router(config)#config-register 0x2102 ;正常使用配置文件 router#reload ;重新引導(dǎo) 復(fù)制操作:

      router#copy running-config startup-config ;存配置 router#copy running-config tftp ;上載 router#copy startup-config tftp

      router#copy tftp flash: ;特權(quán)模式下升級(jí)IOS

      router#copy tftp startup-config

      ;下載配置文件到nvram

      ROM狀態(tài):

      Ctrl+Break ;進(jìn)入ROM監(jiān)控狀態(tài)

      rommon>confreg 0x2142 ;跳過(guò)配置,26 36 45xx

      rommon>confreg 0x2102 ;使用配置,恢復(fù)工作狀態(tài)

      rommon>reset

      ;重新引導(dǎo),等效于重開(kāi)機(jī)

      rommon>copy xmodem: flash: ;從console升級(jí)IOS

      rommon>IP_ADDRESS=10.65.1.2 ;設(shè)置路由器IP rommon>IP_SUBNET_MASK=255.255.0.0 ;設(shè)置路由器掩碼 rommon>TFTP_SERVER=10.65.1.1 ;指定TFTP服務(wù)器IP

      rommon>TFTP_FILE=c2600.bin ;所要下載的文件 rommon>tftpdnld ;ROM監(jiān)控狀態(tài)下升級(jí)IOS

      rommon>dir flash: ;查看閃存中的內(nèi)容 rommon>boot ;引導(dǎo)IOS

      靜態(tài)路由:

      ip route 例: router(config)#ip route 10.1.0.0 255.255.0.0 10.2.1.1 router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2

      動(dòng)態(tài)路由:

      router(config)#ip routing ;啟動(dòng)路由 router(config)#router rip ;啟動(dòng)RIP路由協(xié)議。router(config-router)#network ;配置范圍,有的支持all。

      router(config-router)#negihbor ;點(diǎn)對(duì)點(diǎn) 幀中繼用。

      幀中繼命令:

      router(config)# frame-relay switching ;使能幀中繼交換 router(config-s0)# encapsulation frame-relay ;使能幀中繼

      router(config-s0)# frame-relay intf-type DCE ;DCE端(需要配虛電路)

      router(config-s0)# frame-relay local-dlci 20 ;配置虛電路號(hào)

      基本訪問(wèn)控制列表:

      router(config)#access-list permit|deny router(config)#interface ;default: deny any router(config-if)#ip access-group in|out ;default: out

      例:

      RB(config)#access-list 4 permit 10.8.1.1

      RB(config)#access-list 4 deny 10.8.1.0 0.0.0.255

      RB(config)#access-list 4 permit 10.8.0.0 0.0.255.255 RB(config)#access-list 4 deny 10.0.0.0 0.255.255.255 RB(config)#access-list 4 permit any RB(config)#int f0/0

      RB(config-if)#ip access-group 4 in

      擴(kuò)展訪問(wèn)控制列表:

      access-list permit|deny icmp [type]

      access-list permit|deny tcp [port] 例1:

      router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo router(config)#access-list 101 permit ip any any router(config)#int s0/0

      router(config-if)#ip access-group 101 in 例2:

      router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80 router(config)#access-list 102 permit ip any any router(config)#interface s0/1

      router(config-if)#ip access-group 102 out

      router(config)#no access-list 102

      router(config-if)#no ip access-group 101 in

      在路由器上設(shè)置 SNMP Community Strings

      router(config)# snmp-server community read-community-string ro

      router(config)# snmp-server community write-community-string rw

      在交換機(jī)上設(shè)置 SNMP Community Strings

      switch(config)# snmp-server community read-community-string ro

      switch(config)# snmp-server community write-community-string rw

      在路由器上配置日志信息(Syslog Message Logging)

      router(config)# logging on

      router(config)# logging server-ip-address router(config)# logging trap severity-level 路由器恢復(fù)出廠設(shè)置

      erase start-config 或write erase 或erase NVROM

      第四篇:分組交換網(wǎng)絡(luò)綜合實(shí)驗(yàn)-劃分子網(wǎng)_及單臂路由的配置報(bào)告

      分組交換網(wǎng)絡(luò)綜合實(shí)驗(yàn) 劃分子網(wǎng)及單臂路由的配置

      實(shí)驗(yàn)?zāi)康?/p>

      ? 通過(guò)這個(gè)實(shí)驗(yàn)進(jìn)一步理解了IP地址的含義,掌握IP地址的分配和劃分子網(wǎng)的方法。? 熟練掌握交換機(jī)和路由器的互聯(lián)。

      ? 在大型復(fù)雜網(wǎng)絡(luò)里熟練使用Vlan的劃分、路由的配置。? 學(xué)會(huì)配置單臂路由。實(shí)驗(yàn)原理

      ? 路由器實(shí)現(xiàn)單臂路由的配置方法,連接如圖,ROUTE0的F0/0與SWITCH0的F0/1相連,SWITCH的F0/2,F0/3分別與PC0,PC1相連接;ROUTE2的F0/1與SWITCH0的F0/1相連,SWITCH的F0/2,F0/3分別與PC2,PC3相連接.PC0,PC2分到VLAN10,PC1,PC3分到VLAN20。

      路由器的配置

      ? 注意的地方,在子接口先要先描術(shù)DOT1Q,再配IP地址,DOT1Q后面的數(shù)字是VLAN的號(hào)碼,根據(jù)交換機(jī)的配置不同有所不同

      配置router0:

      //系統(tǒng)模式 ? Router#configure

      terminal

      ? Router>enable

      //配置模式 ? Router(config)#int //端口模式

      ? Router(config-if)#no shut ? Router(configure-if)#ex ? Router(config)#int f1/0.1

      ? Router(config-subif)#encapsulation //綁定Vlan10

      ? Router(config-subif)#ip

      add 255.255.255.0

      ? Router(config-subif)#exit ? Router(config)#int f1/0.2

      ? Router(config-subif)#encapsulation //綁定Vlan20 ? Router(config-subif)#ip

      add 255.255.255.0

      ? Router(config-subif)#exit

      f1/0

      dot1q 10

      192.168.1.254

      dot1q 20

      192.168.2.254

      ? Router(config)#exit

      ? Router#copy

      run star

      //router#copy running-config startup-config ;保存配置的簡(jiǎn)寫(xiě)

      配置router2:同理可得

      f0/1.1 ip 192.168.3.254 f0/1.2 ip 192.168.4.254 配置switch: 設(shè)置PC:

      PC0:192.168.1.1網(wǎng)關(guān)192.168.1.254 PC1:192.168.2.1網(wǎng)關(guān)192.168.2.254 PC2:192.168.3.1網(wǎng)關(guān)192.168.3.254 PC3:192.168.4.1網(wǎng)關(guān)192.168.4.254 設(shè)置router:

      Router0:f 0/1 ip 192.168.5.1 Router1:f 0/0 ip 192.168.5.2 Router1:f 0/1 ip 192.168.6.1 Router2:f 0/0 ip 192.168.6.2

      設(shè)置路由表:用RIP方式。測(cè)試結(jié)果:

      下載思科交換機(jī)學(xué)習(xí)第八課:路由器單臂路由配置實(shí)現(xiàn)vlan互通word格式文檔
      下載思科交換機(jī)學(xué)習(xí)第八課:路由器單臂路由配置實(shí)現(xiàn)vlan互通.doc
      將本文檔下載到自己電腦,方便修改和收藏,請(qǐng)勿使用迅雷等下載。
      點(diǎn)此處下載文檔

      文檔為doc格式


      聲明:本文內(nèi)容由互聯(lián)網(wǎng)用戶自發(fā)貢獻(xiàn)自行上傳,本網(wǎng)站不擁有所有權(quán),未作人工編輯處理,也不承擔(dān)相關(guān)法律責(zé)任。如果您發(fā)現(xiàn)有涉嫌版權(quán)的內(nèi)容,歡迎發(fā)送郵件至:645879355@qq.com 進(jìn)行舉報(bào),并提供相關(guān)證據(jù),工作人員會(huì)在5個(gè)工作日內(nèi)聯(lián)系你,一經(jīng)查實(shí),本站將立刻刪除涉嫌侵權(quán)內(nèi)容。

      相關(guān)范文推薦