US Home
Automation
(Last updated: Sunday May, 10, 2015)
Automation
(Last updated: Sunday May, 10, 2015)
Router Redundancy
This is where I'll put my notes on Router Redundancy with a USB LTE modem, KeepAlived, Quagga Ripd and IP tunnels between OpenWRT and my Ubiquiti ERLite-3.
KeepAlived
ERLite-3 VRRP (KeepAlived)
Code:
interfaces {
ethernet eth1 {
address 192.168.1.252/24
description "Bridge Home LAN"
duplex auto
speed auto
vrrp {
vrrp-group 100 {
advertise-interval 1
description "VRRP for internet access"
preempt true
priority 100
virtual-address 192.168.1.254/24
}
}
}
}
OpenWRT KeepAlived
Code:
vrrp_instance VI_1 {
state BACKUP
interface br-lan
virtual_router_id 100
priority 50
advert_int 1
preempt_delay 90
virtual_ipaddress {
192.168.1.254/24
}
notify /etc/keepalived/notify.sh
}
Quagga & Ripd
ERLite-3 RIP V2
Code:
protocols {
rip {
default-information {
}
network 192.168.1.0/24
passive-interface eth0
redistribute {
static {
}
}
}
}
OpenWRT Quagga, Zebra, VTYSH, RIP V2
Code:
interface br-lan
description primary RIPD int
!
interface eth0
description RIPD int
!
interface wwan0:1
description modem web interface
!
router rip
version 2
redistribute static
network 192.168.1.0/24
network br-lan
network eth0
network wwan0
neighbor 192.168.1.252
passive-interface wwwan0:1
passive-interface wwan0
IP Tunnels
ERLite- IP Tunnel
Code:
interfaces {
tunnel tun0 {
address 10.255.255.1/30
encapsulation ipip
local-ip 192.168.1.252
multicast disable
remote-ip 192.168.1.253
ttl 255
}
}
OpenWRT IP Tunnel
Code:
# ifconfig eth0 | grep -oP 'inet addr:\K\S+'
ip tunnel add tun0 mode ipip remote 192.168.1.252 local 192.168.1.253 dev br-lan
ifconfig tun0 10.255.255.2 netmask 255.255.255.252 pointopoint 10.255.255.1 mtu 1500 up
#ifconfig tun0 mtu 1500 up
Netgear 341u & uqmi
Code: