顯示具有 L3 switch 標籤的文章。 顯示所有文章
顯示具有 L3 switch 標籤的文章。 顯示所有文章

2010年5月29日 星期六

名詞定義,Untagg_VS_Tagg

名詞定義,
Cisco > Trunk port ___Brocade > Tagger port
Cisco > Access port ___Brocade > Untagger port
Cisco > Etherchannel ___Brocade > Trunk


Tagger port 此port由於每個 Vlan皆可通過,故需在經過此介面的封包標上各自屬於的編號。
Untagger port 只port只通過 Vlan A,所以不需要加上Tagger。



L3Switch&Router差異

何謂L3 Switch?

預設他跟Switch功能一樣,但他可以虛擬出一個或多個Virture Router,去Run Routing !


e.g 1、The port1 & port2 跟 port3 & port4 有個別的VRouter,在那頂頭有各自的Routing table
為何麼要這麼做呢?


假如,今天Router底下有好幾千人要同時上網,那這顆Router肯定無法承受住這麼多的流量。
而 L3 switch 可以利用 Etherchannl 技術,將多個實體port串成一條虛擬線路,且可以很彈性的去調整所需的頻寬,又可以達到容錯,這樣就可以跳脫,Router的硬體限制。


e.g 2、那為何還有Router呢?
因為 L3 Switch 功能這麼強悍,所以現今網路規劃案裡頭,都被使用於Core端,還有很多,像專線、撥接等規格的線路,


但是其價格是很昂貴的,都需要另外購買卡版的。還有一個重點是,現今的網路頻寬,使用Router的處理速度就綽綽有餘了。
所以,相對來講,這些事情交給Router來處理,是非常合適的。


p.s 企業裡,較多流量通常都是部門之間,資料的傳遞,這通常都會規劃一個L3 Switch 來做資料的轉送,
Router 則放置於邊界路由,當有需要連到Internet時,才會將資料丟到Router。

2010年3月21日 星期日

L3 Switch for HSRP

HSRP (Hot Standby Router Potocol)




L3 switch 比較特別的是,可以區分VLAN active 在不同的switch 上。
這樣可以減輕 Loading,達到Load balance。


由於要區分不同的vlan,所以指令不能設定在實體界面上。


SwA(config)# interface vlan 1 
SwA(config-if)# ip address 10.10.10.252  255.255.255.0 
SwA(config-if)# standby ip  10.10.10.254 
SwA(config-if)# standby  preempt 
SwA(config-if)# standby priority 105
SwA(config-if)# standby track fa0/1


SwB(config)# interface vlan 1 
SwB(config-if)# ip address 10.10.10.253  255.255.255.0 
SwB(config-if)# standby ip  10.10.10.254 
SwB(config-if)# standby  preempt 
SwB(config-if)# standby priority 100
SwB(config-if)# standby track fa0/1

standby preempt   
此設定在於,當 SwA 失效時,SwB的 Vlan1會從standby 變成 active,等到SwA恢復正常後,Vlan 1 的所有權,會再回到SwA

standby priority 100 
Default  priority is 100 。
數值越大,表示優先權越高。這與 Switch priority 定義 相反,需注意。

standby track fa0/1
一般使用HSRP時,其中一個設備shutdown,Standby設備才會Active。Track的好處可以同時偵測多個介面,(Etherchannel 也行),當device shutdown,會自動減少其priority值,切換成Standby設備接手。

2010年3月15日 星期一

使用Static route 配置 L3 Switch



1-1、配置 IP address、switchport、access or Trunk 
     Router 需配置 Default route 指向 fa0/0

L3-- 1.啟用 ip routing
            Switch(config)# ip routing
Tip: Check the show running-configuration. Verify whether ip routing is enabled.
2.建立Vlan  20  30
            Switch(config)# vlan 20
            Switch(config-if)# name  IT
            ......
Tip: You can use VLAN Trunking Protocol (VTP) to propagate these VLANs to other switches.
3.設定各vlan default Gateway
            Switch(config)# interface Vlan 20
            Switch(config-if)# ip address 192.168.2.254 255.255.255.0
            Switch(config-if)# no shutdown
             .....
4.跟router連接的端口,需更改為 no switchport  並設定IP address
           Switch(config)# interface FastEthernet 0/1
           Switch(config-if)# no switchport 
           Switch(config-if)# ip address 192.168.1.1 255.255.255.0
           Switch(config-if)# no shutdown
5.這裡我們使用 static route 來加強封包傳送的概念 因為目前L3switch 所知道的IP 只有192.168.1.0/24 192.168.2.0/24   192.168.3.0/24    192.168.100.0/24 這些網段。所以我們須將 vlan 40 網段 設定到 routing table。
           Switch(config)# ip route 192.168.4.0 255.255.255.0  192.168.100.2  
   诶? 那這樣還會有一個問題。假如今天要去的 IP address 不是這些呢?
   如果routing table 比對不到,就會將這個封包丟棄。所以,我們還需要在設定一個
   Default route 將這些封包 指向 邊界路由器。
           Switch(config)# ip address 0.0.0.0  0.0.0.0  192.168.1.2
             OK! 大功告成!
     

等等... 別忘了! 我們還有 另一台 L3 Switch呢!  那他的設定 基本上也是一樣的! 只要記得把Default route 指向 192.168.100.1 。

註!我相信各位設定完畢後,在試著ping 200.1.1.1 這台電腦時,一定會發現ping 不通。
      封包確實有過去,只是回不來。
      因為 router 的 routing table 並沒有 底下 Vlan的網段,所以會將封包丟向 fa0/0。
      所以,在這個實驗裡,如果想要ping到 200.1.1.1這台電腦,就需要更改Default route
      聰明的你知道怎更改了吧!!  

     Router(config)# ip address 0.0.0.0  0.0.0.0  192.168.1.1