您好,歡迎來電子發(fā)燒友網(wǎng)! ,新用戶?[免費注冊]

您的位置:電子發(fā)燒友網(wǎng)>電子百科>通信技術(shù)>傳輸網(wǎng)/接入網(wǎng)/交換網(wǎng)>

虛擬局域網(wǎng)(VLAN)配置實例 - 虛擬局域網(wǎng)配置實例詳解

2018年02月10日 11:10 網(wǎng)絡(luò)整理 作者: 用戶評論(0
關(guān)鍵字:虛擬局域網(wǎng)(9605)

  虛擬局域網(wǎng)(VLAN)配置實例

  例一:

  設(shè)備選用Catalyst5500交換機(jī)1臺,安裝WS-X5530-E3管理引擎,多塊WS-X5225R及WS-X5302路由交換模塊,WS-X5302被直接插入交換機(jī),通過二個通道與系統(tǒng)背板上的VLAN相連,從用戶角度看認(rèn)為它是1個1接口的模塊,此接口支持ISL。在交換機(jī)內(nèi)劃有3個虛擬網(wǎng),分別名為default、qbw、rgw,通過WS-X5302實現(xiàn)虛擬網(wǎng)間路由。

  以下加重下橫線部分,如setsystemname5500C為需設(shè)置的命令。

  設(shè)置如下:

  Catalyst5500配置:

  begin

  setpassword$1$FMFQ$HfZR5DUszVHIRhrz4h6V70

  setenablepass$1$FMFQ$HfZR5DUszVHIRhrz4h6V70

  setpromptConsole》

  setlength24default

  setlogout20

  setbannermotd^C^C

 ??!

  #system

  setsystembaud9600

  setsystemmodemdisable

  setsystemname5500C

  setsystemlocation

  setsystemcontact

  !

  #ip

  setinterfacesc0110.230.4.240255.255.255.010.230.4.255

  setinterfacesc0up

  setinterfacesl00.0.0.00.0.0.0

  setinterfacesl0up

  setarpagingtime1200

  setipredirectenable

  setipunreachableenable

  setipfragmentationenable

  setiproute0.0.0.010.230.4.151

  setipaliasdefault0.0.0.0

 ??!

  #Commandalias

 ?。?/p>

  #vtp

  setvtpdomainhne

  setvtpmodeserver

  setvtpv2disable

  setvtppruningdisable

  setvtppruneeligible2-1000

  clearvtppruneeligible1001-1005

  setvlan1namedefaulttypeethernetmtu1500said100001stateactive

  setvlan777namergwtypeethernetmtu1500said100777stateactive

  setvlan888nameqbwtypeethernetmtu1500said100888stateactive

  setvlan1002namefddi-defaulttypefddimtu1500said101002stateactive

  setvlan1004namefddinet-defaulttypefddinetmtu1500said101004stateactivebridge0x0stpieee

  setvlan1005nametrnet-defaulttypetrbrfmtu1500said101005stateactivebridge0x0stpibm

  setvlan1003nametoken-ring-defaulttypetrcrfmtu1500said101003stateactiveparent0ring0x0modesrbaremaxhop7stemaxhop7

 ??!

  #setbootcommand

  setbootconfig-register0x102

  setbootsystemflashbootflash:cat5000-sup3.4-3-1a.bin

  !

  #module1:2-port1000BaseLXSupervisor

  setmodulename1

  setvlan11/1-2

  setportenable1/1-2

 ??!

  #module2:empty

 ??!

  #module3:24-port10/100BaseTXEthernet

  setmodulename3

  setmoduleenable3

  setvlan13/1-22

  setvlan7773/23

  setvlan8883/24

  settrunk3/1onisl1-1005

  #module4empty

 ?。?/p>

  #module5empty

 ??!

  #module6:1-portRouteSwitch

  setmodulename6

  setportlevel6/1normal

  setporttrap6/1disable

  setportname6/1

  setcdpenable6/1

  setcdpinterval6/160

  settrunk6/1onisl1-1005

 ??!

  #module7:24-port10/100BaseTXEthernet

  setmodulename7

  setmoduleenable7

  setvlan17/1-22

  setvlan8887/23-24

  settrunk7/1onisl1-1005

  settrunk7/2onisl1-1005

 ?。?/p>

  #module8empty

 ??!

  #module9empty

 ?。?/p>

  #module10:12-port100BaseFXMMEthernet

  setmodulename10

  setmoduleenable10

  setvlan110/1-12

  setportchannel10/1-4off

  setportchannel10/5-8off

  setportchannel10/9-12off

  setportchannel10/1-2on

  setportchannel10/3-4on

  setportchannel10/5-6on

  setportchannel10/7-8on

  setportchannel10/9-10on

  setportchannel10/11-12on

  #module11empty

 ?。?/p>

  #module12empty

 ??!

  #module13empty

 ??!

  #switchportanalyzer

 ?。etspan11/1bothinpktsdisable

  setspandisable

 ??!

  #cam

  setcamagingtime1-2,777,888,1003,1005300

  end

  5500C》(enable)

  WS-X5302路由模塊設(shè)置:

  Router#writ

  Buildingconfiguration.。。

  Currentconfiguration:

 ??!

  version11.2

  noservicepassword-encryption

  noserviceudp-small-servers

  noservicetcp-small-servers

 ??!

  hostnameRouter

 ??!

  enablesecret5$1$w1kK$AJK69fGOD7BqKhKcSNBf6.

  !

  ipsubnet-zero

  !

  interfaceVlan1

  ipaddress10.230.2.56255.255.255.0

  !

  interfaceVlan777

  ipaddress10.230.3.56255.255.255.0

  !

  interfaceVlan888

  ipaddress10.230.4.56255.255.255.0

  !

  noipclassless

 ??!

  linecon0

  lineaux0

  linevty04

  passwordrouter

  login

 ??!

  end

  Router#

  例二:

  交換設(shè)備仍選用Catalyst5500交換機(jī)1臺,安裝WS-X5530-E3管理引擎,多塊WS-X5225R在交換機(jī)內(nèi)劃有3個虛擬網(wǎng),分別名為default、qbw、rgw,通過Cisco3640路由器實現(xiàn)虛擬網(wǎng)間路由。交換機(jī)設(shè)置與例一類似。

  路由器Cisco3640,配有一塊NM-1FE-TX模塊,此模塊帶有一個快速以太網(wǎng)接口可以支持ISL。Cisco3640快速以太網(wǎng)接口與交換機(jī)上的某一支持ISL的端口實現(xiàn)連接,如交換機(jī)第3槽第1個接口(3/1口)。

  Router#writ

  Buildingconfiguration.。。

  Currentconfiguration:

 ??!

  version11.2

  noservicepassword-encryption

  noserviceudp-small-servers

  noservicetcp-small-servers

 ??!

  hostnameRouter

 ??!

  enablesecret5$1$w1kK$AJK69fGOD7BqKhKcSNBf6.

 ??!

  ipsubnet-zero

 ??!

  interfaceFastEthernet1/0

 ??!

  interfaceFastEthernet1/0.1

  encapsulationisl1

  ipaddress10.230.2.56255.255.255.0

 ??!

  interfaceFastEthernet1/0.2

  encapsulationisl777

  ipaddress10.230.3.56255.255.255.0

 ??!

  interfaceFastEthernet1/0.3

  encapsulationisl888

  ipaddress10.230.4.56255.255.255.0

  !

  noipclassless

 ?。?/p>

  linecon0

  lineaux0

  linevty04

  passwordrouter

  login

 ??!

  end

  Router#

非常好我支持^.^

(0) 0%

不好我反對

(5) 100%

( 發(fā)表人:姚遠(yuǎn)香 )

      發(fā)表評論

      用戶評論
      評價:好評中評差評

      發(fā)表評論,獲取積分! 請遵守相關(guān)規(guī)定!

      ?