快速业务通道

Cisco交换机设置点滴(一)

作者 佚名技术 来源 网络技术 浏览 发布时间 2012-07-01
ot-trunking

5/12 auto not-trunking

Port Vlans allowed

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

1/1 1-1000

1/2 1-1000

2/1-2 1-1000

5/1 1-1000

5/2 1-1000

5/3 1-1000

5/4 1-1000

5/5 1-1000

5/6 1-1000

5/7 1-1000

5/8 1-1000

5/9 1-1000

5/10 1-1000

5/11 1-1000

5/12 1-1000

Port Vlans active

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

1/1 1

1/2 1

2/1-2 1

5/1 1

5/2 1

5/3 1

5/4 1

5/5 1

5/6 1

5/7 1

5/8 1

5/9 1

5/10 1

5/11 1

5/12 1

注意: DISL在Cisco IOS软件中不支持.

分配VLAN到端口

Cat5001> (enable) set vlan 2 3/2-20

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

2 1/1

3/2-20

Cat5001> (enable) set vlan 20 5/1-6

VLAN 20 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

20 1/1

5/1-6

Configure additional information for VLAN 20.

On the other Catalyst 5000 :

Cat5002> (enable) set vlan 2 4/1-2,5/6-12

VLAN 2 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

2 1/2

4/1-3,4/5-23

5/6-12

Configure additional information for VLAN 20.

Cat5002> (enable) set vlan 20 5/1-5

VLAN 20 modified.

VLAN 1 modified.

VLAN Mod/Ports

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

20 1/2

5/1-5

Configure VLAN 20 on a VTP server.

显示端口配置

Cat5001> (enable) show port

Port Name Status Vlan Level Duplex Speed Type

1/1 connected 1 normal half 100 100BaseTX

1/2 connected trunk normal half 100 100BaseTX

2/1 connecting 1 normal half 100 FDDI

2/2 connected 1 normal half 100 FDDI

4/1 inactive 2 normal half 10 10BaseT

4/2 inactive 2 normal half 10 10BaseT

4/3 inactive 2 normal half 10 10BaseT

4/4 notconnect 1 normal half 10 10BaseT

4/5 inactive 2 normal half 10 10BaseT

4/6

此时, VLAN 2 和VLAN 20 还未激活.所以在VLAN 2和VLAN 20的端口是inactive状态.

设置VLAN 20

如果在网络里有VTP server和VTP clent,请在VTP server上设置VLAN 20

Cat5001> (enable) set vlan 20

VLAN 20 modified

这将激活在所有管理域cisco内的VLAN 20

Cat5001> (enable) sho vlan 20

VLAN Name Status Mod/Ports

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

20 VLAN0020 active 1/1

5/1-6

VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2

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

20 enet 100020 1500 - - - - 0 0

配置Router

conf t

interface FastEthernet0/0.1 <-- you need to create a sub-interface by vlan.

encapsulation isl 20 <-- 20 is the vlan number.

ip address 1.1.1.1 255.255.255.0

interface FastEthernet0/0.2

encapsulation isl 2

ip address 2.2.2.1 255.255.255.0

interface FastEthernet0/0.3

encapsulation isl 1

ip address 172.16.80.1 255.255.255.0

Router eigrp 666

network 1.0.0.0

network 2.0.0.0

network 172.16.80.0

end

writ mem

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号