Hero Image
HA command

load merge relative terminal # 全新設備上面沒啟用過HA 必須先定義Cluster ID # ClustartID 必須獨立,不可以與其他SRX重複,因為HA會建立一組Virtual MAC Address ,而這個ID數值會對其產生影響,重複有可能導致MAC address 重複而出現不可預期的錯誤 # request system zeroize # 以下command 必須在 > 模式使用 set chassis cluster cluster-id <ID範圍 0~ 255> node 0 # 這個是在 node 0 的設備下的 set chassis cluster cluster-id <ID範圍 0~ 255> node 1 # 這個是在 node 1 的設備下的 在secondary node 下 這個command request chassis cluster configuration-synchronize # 等待機器重開機後,會出現Hold 或stanby 字樣 ,看到Cluster 是否有起來 show chassis cluster status # 這個是RETH interface 建立好才會出現,必須先做config才會有 show chassis cluster interfaces # 以下command 則是在 Config mode 下使用 ,先把設定檔建起來 --- # 這邊需要 backup-router 是給 HA裡面的Standby Device 的管理介面 (fxp) 一筆routing 可以回應,預設Standby 不會啟用routing engine,所以需要這筆設定 set groups node0 system host-name SRX-node0 set groups node0 system backup-router 10.10.0.254 set groups node0 system backup-router destination 0.0.0.0/0 set groups node0 interfaces fxp0 unit 0 family inet address 10.10.0.2/24 set groups node1 system host-name SRX-node1 set groups node1 system backup-router 10.10.0.254 set groups node1 system backup-router destination 0.0.0.0/0 set groups node1 interfaces fxp0 unit 0 family inet address 10.10.0.3/24 set apply-groups "${node}" set system time-zone Asia/Taipei set chassis cluster control-link-recovery set chassis cluster reth-count 10 set chassis cluster heartbeat-interval 2000 # 另外建議在建置期間先將IPv6 打開,可以使用以下指令,因為日後開啟IPv6功能則必須要將設備重開機 set security forwarding-options family inet6 mode flow-based # 這邊的interface 號碼要看每一台Chassis 的型號不同而會有所不同 # 最簡單的識別方式是看那台設備的Slot 有幾個,像SRX550HM 是 0~ 8都有擴充可以使用,所以預設HA會在 9開始 ,所以會是 ge-9/x/x set chassis cluster redundancy-group 0 node 0 priority 150 set chassis cluster redundancy-group 0 node 1 priority 100 set chassis cluster redundancy-group 0 interface-monitor ge-0/0/3 weight 150 set chassis cluster redundancy-group 0 interface-monitor ge-0/0/5 weight 150 set chassis cluster redundancy-group 0 interface-monitor ge-9/0/3 weight 100 set chassis cluster redundancy-group 0 interface-monitor ge-9/0/5 weight 100 set chassis cluster redundancy-group 1 node 0 priority 150 set chassis cluster redundancy-group 1 node 1 priority 100 set chassis cluster redundancy-group 1 interface-monitor ge-0/0/3 weight 150 set chassis cluster redundancy-group 1 interface-monitor ge-0/0/5 weight 150 set chassis cluster redundancy-group 1 interface-monitor ge-9/0/3 weight 100 set chassis cluster redundancy-group 1 interface-monitor ge-9/0/5 weight 100 # 這裡是作為Redundancy group: 1 的 Data sync 設定 ,請務必設定上去才會啟用ge-0/0/2 的 heartbeat link set interfaces fab0 fabric-options member-interfaces ge-0/0/2 set interfaces fab1 fabric-options member-interfaces ge-9/0/2 # 設定interface 加入reth Group set interfaces ge-0/0/3 gigether-options redundant-parent reth0 set interfaces ge-0/0/4 gigether-options redundant-parent reth0 set interfaces ge-9/0/3 gigether-options redundant-parent reth0 set interfaces ge-9/0/4 gigether-options redundant-parent reth0 set interfaces ge-0/0/5 gigether-options redundant-parent reth1 set interfaces ge-9/0/5 gigether-options redundant-parent reth1 set interfaces reth0 vlan-tagging # 務必要將RETH 加入 data sync Group 裡面,不然不會動 set interfaces reth0 redundant-ether-options redundancy-group 1 # 特別注意,在SRX雖然是LACP Passive mode ,在Switch 請務必使用LACP Activate mode set interfaces reth0 redundant-ether-options lacp passive set interfaces reth0 redundant-ether-options lacp periodic slow set interfaces reth1 redundant-ether-options redundancy-group 1 set interfaces reth1 unit 0 family inet address 202.99.240.100/26

Hero Image
Juniper notes

[Juniper Firewall] tunnel ACG icare@TWCHIJF01# show | compare rollback 4 [edit security policies] from-zone DB_12 to-zone TCT_Office { ... } + from-zone DB_12 to-zone JC32 { + policy For_Backup { + match { + source-address DB_10.11.12.0/24; + destination-address BACKUP_10.32.32.130; + application any; + } + then { + permit; + } + } + } [edit security zones security-zone DB_12 address-book] address DB_10.11.12.57 { ... } + address DB_10.11.12.0/24 10.11.12.0/24; [edit security zones] security-zone ESB_15 { ... } + security-zone JC32 { + address-book { + address BACKUP_10.32.32.130 10.32.32.130/32; + } + host-inbound-traffic { + system-services { + ping; + } + } + interfaces { + gr-0/0/0.32; + } + } [edit interfaces gr-0/0/0] + unit 32 { + description To_JC32_DBBackup; + tunnel { + source 202.168.193.128; + destination 218.253.210.8; + } + family inet { + address 10.32.0.101/30; + } + } [edit routing-options static] route 0.0.0.0/0 { ... } + route 10.32.32.130/32 next-hop 10.32.0.102; set security policies from-zone DB_12 to-zone JC32 policy For_Backup match source-address DB_10.11.12.0/24 set security policies from-zone DB_12 to-zone JC32 policy For_Backup match destination-address BACKUP_10.32.32.130 set security policies from-zone DB_12 to-zone JC32 policy For_Backup match application any set security policies from-zone DB_12 to-zone JC32 policy For_Backup then permit set security zones security-zone DB_12 address-book address DB_10.11.12.0/24 10.11.12.0/24 set security zones security-zone JC32 address-book address BACKUP_10.32.32.130 10.32.32.130/32 set security zones security-zone JC32 host-inbound-traffic system-services ping set security zones security-zone JC32 interfaces gr-0/0/0.32 set interfaces gr-0/0/0 unit 32 description To_JC32_DBBackup set interfaces gr-0/0/0 unit 32 tunnel source 202.168.193.128 set interfaces gr-0/0/0 unit 32 tunnel destination 218.253.210.8 set interfaces gr-0/0/0 unit 32 family inet address 10.32.0.101/30 set routing-options static route 10.32.32.130/32 next-hop 10.32.0.102 icare@TWCHIJF01> show configuration | compare rollback 1

Hero Image
機房 notes

第一張網卡-藍色線 第二張網卡-綠色線 交換機互連-白色線 黃、紅 Storage 有磁碟陣列,數據交換量大,用光纖連接,使用光纖專用的交換機。 光纖顏色: 多模 (Multi-mode)或單模 (Single-mode)的光纖線 單模光纖是黃色,多模光纖 50μm 或是 62.5μm 通常都是橘色。10GB 多模光纖通常是水藍色(Aqua)。 以下是一些常見的規格區分方式。 OS1, OS2, 9µm, 9/125 = 單模光纖 OM1, 62.5µm, 62.5/125 = 多模光纖 62.5 OM2, 50µ, 50/125 = 多模光纖 50 OM3, 10GB, 50µm, 50/125 = 多模光纖 10GB OM4, 100GB, 50µm, 50/125 = 多模光纖 100GB 光纖結構 光纖裸纖的構成主要分為三層: 中心:高折射率玻璃芯(芯徑一般為單模 9μm,多模 50 或 62.5μm) 。 夾層:低折射率硅玻璃包層(直徑為 125μm) 。 外層:加強用樹脂塗層(直徑為 250μm)。 光纖的種類 一般依光波長在光纖中的傳輸模式可分為:單模態光纖和多模態光纖。 多模態光纖:中心玻璃芯(纖核)較粗(50 或 62.5μm),外層纖殼為 125μm 可傳輸多種模代的光波長。但其模間色散較大,因而限制了傳輸信號的頻率,而隨著距離的增加會更加嚴重。例如:600MB/KM 的光纖再 2KM 時則只有 300MB 的頻寬了。因此,多模光纖傳輸的距離就比較近,一般只有幾公里的距離。 單模態光纖:中心玻璃芯較細(纖核一般為 9 或 10μm),只能傳一種模式的光。因此,其模間色散很小,適用於遠距離通訊,但其色度色散起了主要作用,這樣單模光纖對光源的譜寬和穩定性有較高的要求,即譜寬要窄,穩定性要好。 按最佳傳輸頻率窗口分: 常規型單模光纖和色散位移型單模光纖。 常規型:光纖生產廠將光纖傳輸頻率最佳化在單一波長的光上,如 1300μm。 色散位移型:光纖生產廠將 光纖傳輸頻率最佳兩個波長的光上,如 1300μm 和 1550μm。 按折射率分佈情況分:突變型和漸變型光纖。 常用光纖規格