国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 網(wǎng)絡(luò)通信 > 正文

Cisco交換機設(shè)置點滴(一)

2019-11-05 01:55:10
字體:
供稿:網(wǎng)友
Cisco交換機設(shè)置點滴(一)(圖一)

交換機虛擬網(wǎng)(Virtual LANs)的設(shè)置:

Catalyst 5000上實現(xiàn)VLAN劃分及外部VLAN路由設(shè)置

分配VTP域(a VTP Domain)

將Cat5000加入域

指定中繼端口(a Trunk)

Dynamic ISL

分配VLAN到端口

設(shè)置VLAN 20

配置Router

注:存在三個VLAN,在VLAN之間通過Router做路由.

-

分配VTP域

什么是VTP?

VTP是VLAN Trunk PRotocol的簡寫,它提供每個設(shè)備 (router 或 LAN-switch)在中繼端口(trunk ports)發(fā)送廣播. 這些廣播被發(fā)送到一個組播地址,并被所有相鄰設(shè)備接收. 這些廣播列出了發(fā)送設(shè)備的治理域,它的配置修訂號,已知的VLAN, 及已知VLAN的確定參數(shù).通過聽這些廣播,在相同治理域的所有設(shè)備都可以學習到在發(fā)送設(shè)備上配置的新的VLAN.使用這種方法,新的 VLAN只需要在治理域內(nèi)的一臺設(shè)備上建立和配置.信息會自動被相同治理域內(nèi)的其它設(shè)備學到.

分配VTP域

首先分配VTP域名(a VTP domain name),在相同治理域內(nèi)的交換機可以通過VTP協(xié)議互相學習VTP信息.

Cat5001> (enable) sho vtp domain

Domain Name Domain Index VTP Version Local Mode

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

1 1 server

Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps

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

300 5 256 0 disabled

Last Updater

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

0.0.0.0

Cat5001> (enable)

Cat5001> (enable) set vtp domain cisco

VTP domain cisco modified

Cat5001> (enable) sho vtp domain

Domain Name Domain Index VTP Version Local Mode

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

cisco 1 1 server

Advt Interval Vlan-count Max-vlan-storage Config Revision SNMP Traps

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

300 5 256 0 disabled

Last Updater

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

0.0.0.0

Cat5001> (enable)

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

將Catalyst 5002加入域

需要將Catalyst 5002加入名為cisco的VTP治理域, 并設(shè)為VTP client,它將接收來自VTP server 的VTP配置及更新.

注重:Catalyst 5000系列交換機默認為VTP server.

cat5002> (enable)

cat5002> set vtp domain cisco mode client

指定中繼端口(Trunk ports)

VLAN Trunk協(xié)議(VTP)只在中繼口(ISL , LANE 和802.10)上傳輸,應在二個Catalyst5000

交換機間定義哪個口作為中繼端口(Trunk port).

Inter-Switch Link (ISL) 中繼用于Fast Ethernet和Gigabit Ethernet端口

IEEE 802.10中繼用于FDDI/CDDI端口

LAN Emulation (LANE) 中繼用于ATM 端口

Cat5001> (enable) set trunk 1/1 on

Port 1/1 mode set to on.

Cat5001> (enable)

Wed Jun 19 1996, 15:00:02 Port 1/1 has become trunk.

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

Dynamic ISL

有了DISL(Dynamic ISL), 你不需要修改遠端的Catalyst 5000;以下信息將顯示在遠端的Catalyst 5000.

Wed Jun 19 1996, 15:51:59 Port 1/2 has become trunk.

Cat5001> (enable) sho trunk

Port Mode Status

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

1/1 on trunking

1/2 auto not-trunking

2/1-2 off not-trunking

5/1 auto not-trunking

5/2 auto not-trunking

5/3 auto not-trunking

5/4 auto not-trunking

5/5 auto not-trunking

5/6 auto not-trunking

5/7 auto not-trunking

5/8 auto not-trunking

5/9 auto not-trunking

5/10 auto not-trunking

5/11 auto not-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狀態(tài).

設(shè)置VLAN 20

假如在網(wǎng)絡(luò)里有VTP server和VTP clent,請在VTP server上設(shè)置VLAN 20

Cat5001> (enable) set vlan 20

VLAN 20 modified

這將激活在所有治理域cisco內(nèi)的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


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 东乌| 兴化市| 抚州市| 静安区| 靖西县| 河津市| 江陵县| 永靖县| 玉溪市| 蓝田县| 万全县| 依兰县| 中山市| 渝中区| 岚皋县| 鲁甸县| 湘乡市| 龙泉市| 白城市| 昌江| 延津县| 浙江省| 营口市| 黄石市| 古浪县| 浦城县| 凤凰县| 九龙坡区| 金昌市| 澜沧| 武安市| 大宁县| 巴林左旗| 文成县| 永靖县| 怀宁县| 察隅县| 东阿县| 永寿县| 盈江县| 延川县|