分享
 
 
 

CatOS下定义VLAN

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

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

---- -------------------------------- --------- ------- ------------------------

1 default active 5 1/1-2

3/1-48

4/1-16

2 cisco_vlan_2 active 75

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

2 enet 100002 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

(Output Suppressed...)

Step 4 If you want to add ports to the VLAN, use the set vlan ... command.

CatosSwitch (enable) set vlan 2 3/1-12

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

---- -----------------------

2 3/1-12

15/1

Note: You can also create the VLAN and add the ports to that VLAN with all the information in a single command.

For example, if you want to create the third VLAN and then assign ports 3/13-3/15 to that VLAN, use the following command:

CatosSwitch (enable) set vlan 3 3/13-15

Vlan 3 configuration successful

VLAN 3 modified.

VLAN 1 modified.

VLAN Mod/Ports

---- -----------------------

3 3/13-15

15/1

Step 5 Verify VLAN configuration by using show vlan command.

CatosSwitch (enable) show vlan

VLAN Name Status IfIndex Mod/Ports, Vlans

---- -------------------------------- --------- ------- ------------------------

1 default active 5 1/1-2

3/16-48

4/1-16

2 cisco_vlan_2 active 75 3/1-12

3 VLAN0003 active 76 3/13-15

1002 fddi-default active 6

1003 token-ring-def

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有