Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Tiny Server Clustering using Vyatta/VyOS (MEMO)

3,328 views

Published on

Tiny Server Clustering using Vyatta/VyOS (MEMO)

13-Feb-2015
SAKURA Internet Research Center.
Senior Researcher / Naoto MATSUMOTO

Published in: Technology

Tiny Server Clustering using Vyatta/VyOS (MEMO)

  1. 1. 13-Feb-2015 SAKURA Internet Research Center. Senior Researcher / Naoto MATSUMOTO
  2. 2. Basic Ideas Using Vyatta/VyOS with OSPFv2 and VRRP for Tiny Server Clustering SERVER SERVER SERVER SERVER SERVER LAN 1Gigabit Ethernet 1/10/40/56 Gigabit Ethernet Direct Connect Vyatta/VyOS vSwitch NIC NIC VMM: (VMware vSphere, Microsoft Hyper-V, Linux KVM ..etc) 1/10/40/56 Gigabit Ethernet Direct Connect VM VM VM OSPFv2 (IPv4) OSPFv2 (IPv4) VRRP vSwitch vSwitch
  3. 3. VR-02 Configuration # set system host-name VR-02 # set interfaces ethernet eth0 address 10.0.1.2/24 # set interfaces ethernet eth1 address 10.0.2.2/24 # set protocols ospf area 0.0.0.0 network 0.0.0.0/0 # set protocols ospf parameters router-id 10.0.2.2 # set protocols ospf passive-interface eth2 # set protocols ospf redistribute connected # set interfaces ethernet eth2 address 192.168.2.2/24 eth0 10.0.1.2/24 eth1 10.0.2.2/24 SERVER SERVER SERVER SERVER SERVER LAN VR-128 VR-01 VR-02VR-04 VR-03 Local-Link I/F Config OSPFv2 Config
  4. 4. VR-03 Configuration # set system host-name VR-03 # set interfaces ethernet eth0 address 10.0.2.3/24 # set interfaces ethernet eth1 address 10.0.3.3/24 # set protocols ospf area 0.0.0.0 network 0.0.0.0/0 # set protocols ospf parameters router-id 10.0.3.3 # set protocols ospf passive-interface eth2 # set protocols ospf redistribute connected # set interfaces ethernet eth2 address 192.168.3.3/24 10.0.3.3/24 eth1 eth0 10.0.2.3/24 SERVER SERVER SERVER SERVER SERVER LAN VR-128 VR-01 VR-02VR-04 VR-03 Local-Link I/F Config OSPFv2 Config
  5. 5. VR-03 Configuration # set system host-name VR-04 # set interfaces ethernet eth0 address 10.0.3.4/24 # set interfaces ethernet eth1 address 10.0.4.4/24 # set protocols ospf area 0.0.0.0 network 0.0.0.0/0 # set protocols ospf parameters router-id 10.0.4.4 # set protocols ospf passive-interface eth2 # set protocols ospf redistribute connected # set interfaces ethernet eth2 address 192.168.4.4/24 10.0.4.4/24 eth1 10.0.3.4/24 eth0 SERVER SERVER SERVER SERVER SERVER LAN VR-128 VR-01 VR-02VR-04 VR-03 Local-Link I/F Config OSPFv2 Config
  6. 6. VR-01 Configuration SERVER LAN VR-01 # set system host-name VR-01 # set interfaces ethernet eth0 address 10.0.1.1/24 # set interfaces ethernet eth1 address 10.0.128.1/24 # set protocols ospf area 0.0.0.0 network 0.0.0.0/0 # set protocols ospf parameters router-id 10.0.1.1 # set protocols ospf passive-interface eth2 # set protocols ospf redistribute connected # set interfaces ethernet eth2 address 192.168.1.1/24 eth0 10.0.1.1/24 10.0.128.1/24 eth1 # set interfaces ethernet eth3 vrrp vrrp-group 1 virtual-address 10.254.254.10 # set interfaces ethernet eth3 vrrp vrrp-group 1 priority 100 # set interfaces ethernet eth3 address 10.254.254.1/24 # set protocols ospf passive-interface eth3 eth3 10.254.254.1/24 (VIP: 10.254.254.10) VRRP Config Local-Link I/F Config OSPFv2 Config
  7. 7. VR-128 Configuration # set system host-name VR-128 # set interfaces ethernet eth0 address 10.0.4.128/24 # set interfaces ethernet eth1 address 10.0.128.128/24 # set protocols ospf area 0.0.0.0 network 0.0.0.0/0 # set protocols ospf parameters router-id 10.0.128.128 # set protocols ospf passive-interface eth2 # set protocols ospf redistribute connected # set interfaces ethernet eth2 address 192.168.128.128/24 # set interfaces ethernet eth3 vrrp vrrp-group 1 virtual-address 10.254.254.10 # set interfaces ethernet eth3 vrrp vrrp-group 1 priority 150 # set interfaces ethernet eth3 address 10.254.254.128/24 # set protocols ospf passive-interface eth3 SERVER LAN VR-128 eth0 10.0.4.128/24 eth1 10.0.128.128/24 10.254.254.128/24 eth3 (VIP: 10.254.254.10) VRRP Config Local-Link I/F Config OSPFv2 Config
  8. 8. OSPFv2 default-info originate SERVER SERVER SERVER SERVER SERVER LAN VR-128 VR-01 VR-02VR-04 VR-03 VR-01# set protocols ospf default-information originate VR-01# set system gateway-address 10.254.254.222 VR-01# commit VR-01# save VR-128# set protocols ospf default-information originate VR-128# set system gateway-address 10.254.254.222 VR-128# commit VR-128# save OSPFv2 default-information originate eth3 10.254.254.1/2410.254.254.128/24 eth3 default-gateway 10.254.254.222/24
  9. 9. OSPFv2 Interval Adjustment SERVER SERVER SERVER SERVER SERVER LAN VR-128 VR-01 VR-02VR-04 VR-03 # set interfaces ethernet eth0 ip ospf hello-interval 1 # set interfaces ethernet eth0 ip ospf retransmit-interval 5 # set interfaces ethernet eth0 ip ospf dead-interval 7 : # set interfaces ethernet eth1 ip ospf hello-interval 1 # set interfaces ethernet eth1 ip ospf retransmit-interval 5 # set interfaces ethernet eth1 ip ospf dead-interval 7 : OSPFv2 Interval Adjustment
  10. 10. Thanks for your interset. SAKURA Internet Research Center.

×