顯示具有 Router 標籤的文章。 顯示所有文章
顯示具有 Router 標籤的文章。 顯示所有文章

2013年11月14日 星期四

IP Default Route & IP Default-gateway


Not a dumb question at all.  Here is a doc that actually compares the commands and explains when and why you would use them.

事實上很少人能夠弄懂這兩者間的差異。

Ip default gateway is only used when the switch is in L2. You can use ip route or default-network at L3.

我想以上說明已經夠清楚了。

Use the ip default-gateway command when ip routing is disabled on a Cisco router. 

Use the ip default-network and ip route 0.0.0.0 0.0.0.0 commands to set the gateway of last resort on Cisco routers that have ip routing enabled

info from cisco.com 思科闡述的更加明白。

事實上思科設備把以下兩行指令視為相同:

(ip default route)
ip route 0.0.0.0 0.0.0.0 [next_hop]
(ip default-network)
ip default-network [next_hop]
(L2 Switch)
ip default-gateway [next_hop]

而IPv6的下法則是:

(ip default route)
ip route ::/0 [next_hop]
(ip default-network)
ip default-network [next_hop]
(L2 Switch)
ip default-gateway [next_hop]

記得下一站的目的地位址或網卡出口要下正確。

Ref. Configuring a Gateway of Last Resort Using IP Commands

2013年10月22日 星期二

Cisco 6500 多層交換器 簡介


特性:擴充性、電力備援、高容量、高密度連接埠
插槽規格槽位數量從3-13個不等。
每一個模組都是可以熱插拔(hot-swappable)
電源供應器可設為故障切換(failover)聯合(combined)模式支援更多耗電模組。
符合電信等級認證的網路設備建置系統(Network Equipment Building System,NEBS)

最初僅支援 32Gbps 背板速度,如今可以支持 720Gbps 背板速度,未來可以支持 1440Gbps 背板速度。
在大規模企業中扮演Core網路核心設備

即使在小規模公司,也可以使用6509。包含防火牆模組(FWSM)、內容交換模組(CSM)、網路分析模組(NAM),單一機箱就能包含完整的 網路基礎架構、安全、負載平衡、裝置監控 等功能。

配備多層交換卡(包含在最新的supervisor之內),就成為了多層交換器,若執行原生的IOS還可以在保持交換器功能與速度的前提下,化為擁有300多個Ethernet連接埠介面的路由器。

C6500系列的槽位不能隨意亂插,例如:C6509,Supervisor可以主要插在槽位1,備援Supervisor插在槽位2;SFM(Switch Fabric Module)主要插在槽位5,備援SFM插在槽位6。如有內建SFM的Supervisor(例如sup-720)主要必須插在槽位5,備援插在槽位6,不要錯置了。

C6506沒有槽位7,8,9;C6513須將sup-720插在槽位7(主要)、槽位8(備援)。如有疑問請查閱思科相關文件。

增強型機箱(例如C6509E)
多一碼E代表增強型機箱,目的為了供應更多電力給線卡(Line card)。例如:VOIP的乙太網路供電(POE)線卡使用。

E經重新設計過後,每個槽位能支援 80Gbps 的總傳輸量;此理論值是一般C6500機箱的兩倍。C6509-V-E則為每個槽位均支持 80Gbps ,且包含NEBS機箱前版功能,包含了前後散熱與垂直模組。

2013年10月18日 星期五

Dell PowerConnect 6248 常用指令一覽

Dell PowerConnect  6248
重要指令備註
檢視系統相關資訊

3NKR9T1#show system
System Description: Dell Ethernet Switch
System Up Time: 0 days, 00h:49m:34s
System Contact:
System Name: 3NKR9T1
System Location:
Burned In MAC Address: D067.E5B8.F810
System Object ID: 1.3.6.1.4.1.674.10895.3011
System Model ID: PCT6248
Machine Type: PowerConnect 6248
Temperature Sensors:

Unit     Temperature (Celsius)    Status
----     ---------------------    ------
 1        27                      OK

Fans:

Unit     Description    Status
----     -----------    ------
 1       Fan 1          OK
 1       Fan 2          OK
 1       Fan 3          OK

                   
 1       Fan 4          OK

Power Supplies:

Unit     Description    Status         Source
----     -----------    -----------    ------
 1       Main           OK             AC
 1       Secondary      Not present    DC

3NKR9T1#

檢視設備序號
3NKR9T1#show system id

Service Tag: 3NKR9T1
Serial Number: CN0XT800282982CT0013A17
Asset Tag: none
Unit Service tag       Serial number           Asset tag
---- ------------      --------------          ------------
1    3NKR9T1           CN0XT800282982CT0013A17 none          

檢視介面狀態
3NKR9T1#show interfaces status 

Port   Type                            Duplex  Speed    Neg  Link  Flow Control
                                                             State Status
-----  ------------------------------  ------  -------  ---- --------- ------------
1/g1   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g2   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g3   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g4   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g5   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g6   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g7   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g8   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g9   Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g10  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g11  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g12  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g13  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g14  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g15  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g16  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g17  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g18  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g19  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
--More-- or (q)uit
1/g20  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g21  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g22  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g23  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g24  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g25  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g26  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g27  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g28  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g29  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g30  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g31  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g32  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g33  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g34  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g35  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g36  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g37  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g38  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g39  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g40  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g41  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g42  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
--More-- or (q)uit
1/g43  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g44  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g45  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g46  Gigabit - Level                 N/A     Unknown  Auto Down      Inactive  
1/g47  Gigabit - Level                 Full    1000     Auto Up        Active    
1/g48  Gigabit - Level                 Full    1000     Auto Up        Active    
1/xg1  10G - Level                     N/A     Unknown  Auto Down      Inactive  
1/xg2  10G - Level                     N/A     Unknown  Auto Down      Inactive  
1/xg3  10G - Level                     N/A     Unknown  Auto Down      Inactive  
1/xg4  10G - Level                     N/A     Unknown  Auto Down      Inactive  


Ch   Type                            Link
                                     State
---  ------------------------------  -----
ch1  Link Aggregate                  Up    
ch2  Link Aggregate                  Down  
ch3  Link Aggregate                  Down  
ch4  Link Aggregate                  Down  
ch5  Link Aggregate                  Down  
ch6  Link Aggregate                  Down  
ch7  Link Aggregate                  Down  
ch8  Link Aggregate                  Down  
--More-- or (q)uit
ch9  Link Aggregate                  Down  
ch10 Link Aggregate                  Down  
ch11 Link Aggregate                  Down  
ch12 Link Aggregate                  Down  
ch13 Link Aggregate                  Down  
ch14 Link Aggregate                  Down  
ch15 Link Aggregate                  Down  
ch16 Link Aggregate                  Down  
ch17 Link Aggregate                  Down  
ch18 Link Aggregate                  Down  
ch19 Link Aggregate                  Down  
ch20 Link Aggregate                  Down  
ch21 Link Aggregate                  Down  
ch22 Link Aggregate                  Down  
ch23 Link Aggregate                  Down  
ch24 Link Aggregate                  Down  
ch25 Link Aggregate                  Down  
ch26 Link Aggregate                  Down  
ch27 Link Aggregate                  Down  
ch28 Link Aggregate                  Down  
ch29 Link Aggregate                  Down  
ch30 Link Aggregate                  Down  
ch31 Link Aggregate                  Down  
--More-- or (q)uit
ch32 Link Aggregate                  Down  
ch33 Link Aggregate                  Down  
ch34 Link Aggregate                  Down  
ch35 Link Aggregate                  Down  
ch36 Link Aggregate                  Down  
ch37 Link Aggregate                  Down  
ch38 Link Aggregate                  Down  
ch39 Link Aggregate                  Down  
ch40 Link Aggregate                  Down  
ch41 Link Aggregate                  Down  
ch42 Link Aggregate                  Down  
ch43 Link Aggregate                  Down  
ch44 Link Aggregate                  Down  
ch45 Link Aggregate                  Down  
ch46 Link Aggregate                  Down  
ch47 Link Aggregate                  Down  
ch48 Link Aggregate                  Down  

Flow Control:Enabled

針對多個介面進行設定
3NKR9T1(config)#interface range ethernet 1/g47-1/g48

檢視開機設定
3NKR9T1#show startup-config 
1 : !Current Configuration:
2 : !System Description "PowerConnect 6248, 3.3.3.3, VxWorks 6.5"
3 : !System Software Version 3.3.3.3
4 : !Cut-through mode is configured as disabled
5 : !
6 : configure
7 : hostname "3NKR9T1"
8 : stack
9 : member 1 2
10 : exit
11 : ip address 192.168.103.253 255.255.255.0
12 : no passwords min-length
13 : username "root" password e6e66b8981c1030d5650da159e79539a level 15 encrypted
14 : line telnet
15 : exec-timeout 0
16 : exit
17 : !
18 : interface ethernet 1/g47
19 : channel-group 1 mode on
20 : exit
21 : !

                   
22 : interface ethernet 1/g48
23 : channel-group 1 mode on
24 : exit
25 : exit

檢視目前正在執行的設定
3NKR9T1#show run
!Current Configuration:
!System Description "PowerConnect 6248, 3.3.3.3, VxWorks 6.5"
!System Software Version 3.3.3.3
!Cut-through mode is configured as disabled
!
configure
hostname "3NKR9T1"
stack
member 1 2
exit
ip address 192.168.103.253 255.255.255.0
no passwords min-length
username "root" password e6e66b8981c1030d5650da159e79539a level 15 encrypted
line telnet
exec-timeout 0
exit
!
interface ethernet 1/g47
channel-group 1 mode on
exit
!

                   
interface ethernet 1/g48
channel-group 1 mode on
exit
exit

檢視開機相關設定
3NKR9T1#show boot

Config download via DHCP:...................... Enabled
Auto Config State.............................. Waiting for boot options

The host retry count value is : 3
Auto Save mode is Disabled

3NKR9T1#show boot?

boot                     boot-version             bootpdhcprelay          
bootvar                

3NKR9T1#show bootvar

Image Descriptions

 image1 : default image
 image2 :


 Images currently available on Flash

--------------------------------------------------------------------
 unit      image1      image2     current-active        next-active
--------------------------------------------------------------------

    1     3.3.3.3     3.3.3.3             image1             image1

重新開機
3NKR9T1#reload 

2013年5月30日 星期四

Router VS L3 Switch

1. L3 switch主要是支援Ethernet, router可以支援到其他的L3 protocol (AppleTalk / IPX) 

2. L3 switch通常內建的port density都比較高 (8 port以上), router則是有模組可以換不同的port type. 

3. L3 switch比較會有光纖port, router則要高階機種才會有. 

4. L3 switch的QoS設定比較注重LAN QoS或是voice end point, router比較注重於packet marking/shaping的功能 

5. 同價位的L3 switch的throughput通常比router高 

6. Router有較多的路由(route)的微調功能, L3 Switch較少 

7. 低階Cisco L3 switch (3550/3560/3750)沒有NAT的功能, router只要是1700系列就有了 

8. Router可以跑firewall IOS, 有Stateful packet inspection, L3 switch則沒有 

L3 Switch 多數用在大型的企業內網,而且需要高速交換內網資料使用,而不是拿來當作出口設備,出口設備的位置通常還會是FW或是Router,並不會是L3 Switch。

以C3750X來說已經夠資格當作Building Core,建築物單位的核心出口網路,但是不是企業的出口,重點還是在於功能支持度上,以C3750X來說,最多就能做到路由交換、ACL相關功能,但是仍然比不上專門的防火牆,多數對外連接的協定也沒有辦法支援,例如:C3750X的IOS並不支援PPPoE、NAT等等重要的連外服務,但是目前多數公司傾向換成L3 Switch的原因是因為多數WAN上的路由協定都交由ISP處理掉了,但是FW的功能L3 Switch仍舊不足,還是需要落地式45或65系列的FW模組或是Cisco ASA比較合適。