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

首頁 > 學院 > 網絡通信 > 正文

Cisco 交換機設置點滴(一)

2019-11-05 01:46:37
字體:
來源:轉載
供稿:網友

  Cisco交換機設置點滴
  
  
  交換機虛擬網(Virtual LANs)的設置:
  
  Catalyst 5000上實現VLAN劃分及外部VLAN路由設置
  
  分配VTP域(a VTP Domain)
  
  將Cat5000加入域
  
  指定中繼端口(a Trunk)
  
  Dynamic ISL
  
  分配VLAN到端口
  
  設置VLAN 20
  
  配置Router
  
  注:存在三個VLAN,在VLAN之間通過Router做路由.
  
  -
  
  分配VTP域
  
  什么是VTP?
  
  VTP是VLAN Trunk PRotocol的簡寫,它提供每個設備 (router 或 LAN-switch)在中繼端口(trunk ports)發送廣播. 這些廣播被發送到一個組播地址,并被所有相鄰設備接收. 這些廣播列出了發送設備的治理域,它的配置修訂號,已知的VLAN, 及已知VLAN的確定參數.通過聽這些廣播,在相同治理域的所有設備都可以學習到在發送設備上配置的新的VLAN.使用這種方法,新的 VLAN只需要在治理域內的一臺設備上建立和配置.信息會自動被相同治理域內的其它設備學到.
  
  分配VTP域
  
  首先分配VTP域名(a VTP domain name),在相同治理域內的交換機可以通過VTP協議互相學習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治理域, 并設為VTP client,它將接收來自VTP server 的VTP配置及更新.
  
  注重:Catalyst 5000系列交換機默認為VTP server.
  
  cat5002> (enable)
  
  cat5002> set vtp domain cisco mode client
  
  指定中繼端口(Trunk ports)
  
  VLAN Trunk協議(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狀態.
  
  設置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


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 龙海市| 华安县| 凌源市| 教育| 乐平市| 敖汉旗| 万州区| 吴川市| 卓尼县| 庐江县| 湘潭县| 三台县| 蒲城县| 阳泉市| 绥中县| 苗栗县| 临桂县| 辉县市| 东山县| 林芝县| 乐至县| 福泉市| 鞍山市| 吴忠市| 图们市| 青海省| 屯留县| 上犹县| 富源县| 天峻县| 湘西| 乐清市| 济南市| 庆元县| 陆川县| 全椒县| 勐海县| 山阴县| 长汀县| 洪雅县| 安塞县|