当前位置:首页 > 技术与方案 > 网络管理相关

CatOS下定义VLAN

(2012-09-06 07:19:11)

Step 1 Before you can create a VLAN, the switch must be in VTP server mode or VTP transparent mode. If the switch is a VTP server, you must define a VTP domain name before you can add any VLANs. This has to be defined regardless of the number of switches in the network (one or many), or whether or not you will be using VTP to propagate VLANs to other switches in the network. For details on VTP, please refer to the Understanding and Configuring VLAN Trunk Protocol (VTP) document.
  
  The default VTP configuration on the switch is as follows:
  
  
  CatosSwitch> (enable) show vtp domain
  Domain Name Domain Index VTP Version Local Mode Password
  -------------------------------- ------------ ----------- ----------- ----------
  1 2 server -
  
  Vlan-count Max-vlan-storage Config Revision Notifications
  ---------- ---------------- --------------- -------------
  5 1023 0 disabled
  
  Last Updater V2 Mode Pruning PruneEligible on Vlans
  --------------- -------- -------- -------------------------
  0.0.0.0 disabled disabled 2-1000
  
  
  Use the set vtp command to set the domain name and mode.
  
  
  CatosSwitch> (enable) set vtp domain ?
   Domain name
  CatosSwitch> (enable) set vtp domain cisco ?
  mode Set VTP mode
  passwd Set VTP password
  pruning Set VTP pruning
  v2 Set VTP version 2
  
  CatosSwitch> (enable) set vtp domain cisco mode ?
  client VTP client mode
  server VTP server mode
  transparent VTP transparent mode
  CatosSwitch> (enable) set vtp domain cisco mode server
  VTP domain cisco modified
  
  Step 2 Verify VTP configuration by using the show vtp domain command.
  
  
  CatosSwitch> (enable) show vtp domain
  Domain Name Domain Index VTP Version Local Mode Password
  -------------------------------- ------------ ----------- ----------- ----------
  cisco 1 2 server -
  
  Vlan-count Max-vlan-storage Config Revision Notifications
  ---------- ---------------- --------------- -------------
  5 1023 1 disabled
  
  Last Updater V2 Mode Pruning PruneEligible on Vlans
  --------------- -------- -------- -------------------------
  0.0.0.0 disabled disabled 2-1000
  
  If you have the output of a show vtp domain command from your Cisco device, you can use Output Interpreter to display potential issues and fixes. To use Output Interpreter , you must be a registered user, be logged in, and have JavaScript enabled.
  
  Step 3 Once the VTP domain has been set and verified, you can begin to create VLANs on the switch. By default, there is only a single VLAN for all ports, and this VLAN is called the default. VLAN1 cannot be renamed or deleted.
  
  You can use the show vlan command to display the parameters for all configured VLANs in the administrative domain, as shown below:
  
  
  CatosSwitch> (enable) show vlan
  VLAN Name Status IfIndex Mod/Ports, Vlans
  ---- -------------------------------- --------- ------- ------------------------
  1 default active 5 1/1-2
  3/1-48
  4/1-16
  1002 fddi-default active 6
  1003 token-ring-default active 9
  1004 fddinet-default active 7
  1005 trnet-default active 8
  
  
  VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2
  ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------
  1 enet 100001 1500 - - - - - 0 0
  1002 fddi 101002 1500 - - - - - 0 0
  1003 trcrf 101003 1500 - - - - - 0 0
  1004 fdnet 101004 1500 - - - - - 0 0
  1005 trbrf 101005 1500 - - - ibm - 0 0
  
  
  VLAN DynCreated RSPAN
  ---- ---------- --------
  1 static disabled
  1002 static disabled
  1003 static disabled
  1004 static disabled
  1005 static disabled
  
  
  VLAN AREHops STEHops Backup CRF 1q VLAN
  ---- ------- ------- ---------- -------
  1003 7 7 off
  
  To create VLANs, use the set vlan command, as show below:
  
  
  CatosSwitch> (enable) set vlan
  Usage: set vlan
  (An example of mod/port is 1/1,2/1-12,3/1-2,4/1-12)
  set vlan [name ] [type ] [state ]
  [pvlan-type ]
  [said ] [mtu ] [ring ]
  [decring ]
  [bridge ] [parent ]
  [mode ] [stp ]
  [translation ] [backupcrf ]
  [aremaxhop ] [stemaxhop ]
  [rspan]
  (name = 1..32 characters, state = (active, suspend)
  type = (ethernet, fddi, fddinet, trcrf, trbrf)
  said = 1..4294967294, mtu = 576..18190
  pvlan-type = (primary,isolated,community,none)
  hex_ring_number = 0x1..0xfff, decimal_ring_number = 1..4095
  bridge_number = 0x1..0xf, parent = 2..1005, mode = (srt, srb)
  stp = (ieee, IBM, auto), translation = 1..1005
  hopcount = 1..13)
  Set vlan commands:
  ----------------------------------------------------------------------------
  set vlan Set vlan information
  set vlan mapping Map an 802.1q vlan to an Ethernet vlan
  
  
  CatosSwitch> (enable) set vlan 2 name cisco_vlan_2
  Vlan 2 configuration successful
  
  Note: You can verify the VLAN configuration by using the show vlan command, as shown below:
  
  
  CatosSwitch> (enable) show vlan
  VLAN Name Status IfIndex Mod/Ports, Vlans
 

更多
关闭窗口 打印 
网站首页    -    联系我们    -   收藏本站    -    网站地图                                                               客户服务热线:0571-85023000
本网站所有网页信息已申请知识产权和著作权保护,版权归四海光纤公司所有,未经授权禁止任何人复制或镜像,违者必究。
公司主营:杭州光纤光缆视频会议系统,是专业的通信网络工程、视频会议系统建设专家

中华人民共和国备案号:浙ICP备10018243号