HTTP Status 狀態代表的意思

網頁接收到伺服器的回應後,都會自動去判讀網頁的狀態,其中的 Http Status代碼的意思如下:

成功
200 伺服器回應Data成功。
206 取得片段資料,Http Request 中有的 Range 屬性,可以指定要取得那一段Bytes數。
重新導向
301 目標網頁移到新網址(永久轉址)。
302 暫時轉址
304 已讀取過的圖片或網頁,由瀏覽器緩存 (cache) 中讀取。
客戶端錯誤
401 需身分驗證,如 SSL key or htaccess pasword。
403 沒有權限讀取,可能是 IP 被阻檔或是伺服器限制。
404 伺服器未找到目標網址,檔案不存在。
408 Client Request timeout
411 沒有指定 content-length,使用 POST 傳送參數時,必須指定參數的總長度
414 URL 太長導致伺服器拒絕處理。
伺服器錯誤
500 伺服器發生錯誤 : 可能是 htaccess 有錯
503 伺服器當掉 : maybe is code dump
505 不支此 HTTP 版本

Link Aggregation Control Protocol(LACP)

分為兩類:

Dynamic LACP: 該功能判斷不止是 device 的會況,多了確認封包的動作,以確保整體網路狀況

Static LACP: 單純只判斷 port up & down 的狀況,當線材或 port 有問題,只要是機器一直是 up 的狀況,他任會一直傳送,導至掉包的情況發生

Static Link Aggregation
With a static link aggregate, all configuration settings will be setup on both participating LAG components.

Comment: VMware ESX 4.0 exclusive supports static link aggregation.

The IEEE standard describes controlling link aggregation in Section 5.3 Link Aggregation Control starting on page 23.

Dynamic Link Aggregation: Link Aggregation Control Protocol (LACP)
Beyond that, Link Aggregation Control Protocol (LACP) allows the exchange of information with regard to the link aggregation between the two members of said aggregation. This information will be packetized in Link Aggregation Control Protocol Data Units (LACDUs).

Each individual port can be configured as an active or passive LACP using the control protocol.

Passive LACP: the port prefers not transmitting LACPDUs. The port will only transmit LACPDUs when its counterpart uses active LACP (preference not to speak unless spoken to).
Active LACP: the port prefers to transmit LACPDUs and thereby to speak the protocol, regardless of whether its counterpart uses passive LACP or not (preference to speak regardless).
In contrast to a static link aggregation, LACP provides the following advantages:

Even if one physical links fails, it will detect if the point-to-point connection is using a media converter, so that the link status at the switching port remains up. Because LACPDUs do not form a component of this connection, the link will be removed from the link aggregate. This ensures that packets will not be lost due to the failed link.
Both of the devices can mutually confirm the LAG configuration. With static link aggregation, errors in the configuration or wiring will often not be detected as quickly.
The IEEE standard describes controlling link aggregation in Section 5.4 Link Aggregation Control (LACP) starting on page 30.

Continue……

Extreme X460 Stacking & LACP

1. 將Stacking Cable 連結完成後,先 show Stacking

sh stacking
Stack Topology is a Ring
This node is not in an Active Topology
Node MAC Address Slot Stack State Role Flags
------------------ ---- ----------- ------- ---
*00:04:96:7d:e5:fe - Disabled Master ---
 00:04:96:52:89:b5 - Disabled Master ---
 00:04:96:52:8a:15 - Disabled Master ---
 00:04:96:52:89:fa - Disabled Master ---
* - Indicates this node
Flags: (C) Candidate for this active topology, (A) Active Node
 (O) node may be in Other active topology

2. 請先確認每一台的 Mac 和你要的順序,指定堆疊後的slot編號

configure stacking node-address 00:04:96:7D:E5:FE slot-number 1
~
configure stacking node-address 00:04:96:52:89:B5 slot-number 4

3. 將Stack的redundancy更改成maximal,避免switch脫離堆疊後無法自己當Master開機

configure stacking redundancy maximal

4. 設定堆疊後的switch mac address

configure stacking mac-address 

5. Enable Stack功能並且重新開機第一台使堆疊功能生效

(1)啟動Stack
enable stacking node-address 00:04:96:7D:E5:FE
(2)第一台重開機
reboot node-address 00:04:96:7D:E5:FE

6. 重開機後在檢視stack的狀況

show stacking
Stack Topology is a Ring
Active Topology is a Daisy-Chain
Node MAC Address Slot Stack State Role Flags
------------------ ---- ----------- ------- ---
*00:04:96:7d:e5:fe 1 Active Master CA-
 00:04:96:52:89:b5 - Disabled Master ---
 00:04:96:52:8a:15 - Disabled Master ---
 00:04:96:52:89:fa - Disabled Master ---
* - Indicates this node
Flags: (C) Candidate for this active topology, (A) Active Node
 (O) node may be in Other active topology

7. 啟動其他switch的stack功能,並逐一重開機

enable stacking node-address 00:04:96:52:89:FA
reboot node-address 00:04:96:52:89:FA
~
enable stacking node-address 00:04:96:52:89:B5
reboot node-address 00:04:96:52:89:B5

8. 重開機完後檢視stack的狀況

show stacking
Stack Topology is a Ring
Active Topology is a Ring
Node MAC Address Slot Stack State Role Flags
------------------ ---- ----------- ------- ---
*00:04:96:7d:e5:fe 1 Active Master CA-
 00:04:96:52:89:b5 4 Active Standby CA-
 00:04:96:52:8a:15 3 Active Standby CA-
 00:04:96:52:89:fa 2 Active Backup CA-
* - Indicates this node
Flags: (C) Candidate for this active topology, (A) Active Node
 (O) node may be in Other active topology

9. 記得用已下指令確認所有stack的狀況是否有錯誤

show stacking detail
show log

10. 建立 vlan,並帶tag

create vlan v172_16_104
config "v172_16_104" tag 3604

11. 啟動 Load Sharing 將 logical port 1:53 代表 grouping 的 4 個 port

enable sharing 1:53 grouping 1:53-1:54,2:53,2:54 algorithm address-based L3_L4 lacp 

12. 確認是否有啟動

show sharing 
Load Sharing Monitor
Config Current Agg Ld Share Ld Share Agg Link Link Up
Master Master Control Algorithm Group Mbr State Transitions
==============================================================================
 1:53 LACP L3_L4 1:53 - R 1
 L3_L4 1:54 - R 1
 L3_L4 2:53 - R 1
 L3_L4 2:54 - R 1
==============================================================================
Link State: A-Active, D-Disabled, R-Ready, NP-Port not present, L-Loopback
Load Sharing Algorithm: (L2) Layer 2 address based, (L3) Layer 3 address based
 (L3_L4) Layer 3 address and Layer 4 port based
 (custom) User-selected address-based configuration
Custom Algorithm Configuration: ipv4 L3-and-L4, xor
Number of load sharing trunks: 1

13. 將 Logical Port 帶上 tag port

configure vlan "v172_16_104" add ports 1:53 tagged 

13. 將 Vlan 帶上 IP Address

configure vlan "v172_16_104" ipaddress 172.16.104.62/24

14. 試通加上static route

configure iproute add 172.16.201.0/24 172.16.104.254

15. 完成後儲存

save

 

Juniper Ex Series first configure set

0. 設定原廠預設

root> request system zeroize media

1. 設定密碼

root# set system root-authentication plain-text-password

2. 確認版本,如版本沒問題,直接跳 5

root# show | display set

3. 設定管理port IP

root# set interfaces me0 unit 0 family inet address <ip address>

4. 安裝版本

root> request system software add <url> reboot

reboot 為更新完後自動開機,如沒有加,可於變更版本後執行:

root> request system reboot at now

5. 啟用 services 功能 ( telnet, ssh)

root# set system services ssh 
root# set system services telnet

* 可視需要變更 host-name 名稱

root# set system host-name xxxxx

6. 處理 ALARMS 燈的問題

root> show system alarms 
1 alarms currently active
Alarm time Class Description
2013-06-14 03:19:20 UTC Minor Rescue configuration is not set

(1) 備用config並未設定

root> request system configuration rescue save

(2) Management Ethernet Link Down 管理界面無連結

root# set chassis alarm management-ethernet link-down ignore

7. 確認備用的版本與目前使用的版本是否相同

root> show system snapshot media internal

* 如不相同,請下達指令讓其版本相同,避免倒入 config 檔出現因版本不同無法倒入的狀況
* 如資料毀損,也可用這指令讓 image 復原

root> request system snapshot slice alternate

8. 設定時區

root# set system time-zone Asia/Taipei

9. 設定時間,兩種方法如下:

(1) 直接設定時間

root> set date <YYYYMMDDhhmm.ss>

(2) 設定至 NTP Server

root> set date ntp [<server> [<server>...]]

10. 記得下達完指令後,要下儲存的指令

root# commit

11. 設定完成關機

root> request system halt