Hi all again, I am learning and wanting to use VRRP at home and seeking some help with VRRP please.
I am on rolling release “VyOS 1.3-rolling-202002030754” and running inside a VM on Server 2019 with Hyper-V role with the VM set in Trunk mode as per below
PS C:\Windows\system32> get-vmnetworkadaptervlan -vmname vyos007
VMName VMNetworkAdapterName Mode VlanList
vyos007 Network Adapter Trunk 0,0-200
vyos007 Network Adapter Trunk 0,0-200
vyos007 Network Adapter Trunk 0,0-200
All 3 NICs inside Hyper-V VM settings have “Enable MAC address spoofing” ticked.
My second physical Hyper-V host does not even have the vyos VM configured yet, but it is installed and ready for me to configure, its not even switched off at this point so actual VRRP is not technically possible… but it should still work on a single router as it should be always a master right?
Just till I figure it out I am testing VRRP on my ip camera VLAN 53 running on eth2
So my gateway or floating virtual ip for this vlan should be 192.168.53.253
My normal interfaces are supposed to be 192.168.53.252 for primary vyos router and .254 for secondary.
What has happened, my cameras are unreachable as soon as I switch to using VRRP as it appears the gateway (virtual ip 192.168.53.253) does not work when it becomes master.
I have rebooted the vyos VM but nothing changes.
Nothing concerning in dmesg that I saw regarding VRRP.
Can you please help, I am still playing but nothing is working. Thanks!
If I use monitor traffic on either eth2.53 or eth2.53v53 I can see camera traffic on both interfaces which is also not expected as eth2.53 is the static address and eth2.53v53 should be the virtual vrrp address with the correct gateway ip?
show_interfaces_ethernet_eth2
duplex auto
hw-id 00:15:5d:01:9f:14
speed auto
vif 53 {
address 192.168.53.252/24
description Cam
}
show_high_availability
vrrp {
group cam {
advertise-interval 1
description Cam
hello-source-address 192.168.53.252
interface eth2.53
peer-address 192.168.53.254
priority 200
rfc3768-compatibility
virtual-address 192.168.53.253/24
vrid 53
}
sync-group sync {
member cam
}
}
show_vrrp
Name Interface VRID State Last Transition
cam eth2.53v53 53 MASTER 3h32m12s
show_interfaces_vrrp
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
eth2.53v53 192.168.53.253/24 u/u
show_vrrp_detail with only the relevant interface information attached for sake of keeping it simple
Interestingly the virtual interface for VRRP does not appear to have ipv4 address assigned?
------< VRRP Topology >------
VRRP Instance = cam
VRRP Version = 2
Sync group = sync
State = MASTER
Wantstate = MASTER
Number of interface and track script faults = 0
Number of track scripts init = 0
Last transition = 1582501708 (Mon Feb 24 10:48:28 2020)
Read timeout = 1582514416.250918 (Mon Feb 24 14:20:16.250918)
Master down timer = 3218750 usecs
Use VMAC, is_up = true, xmit_base = true
Interface = eth2.53v53, vmac on eth2.53, xmit base i/f
Using src_ip = 192.168.53.252 (from configuration)
Gratuitous ARP delay = 5
Gratuitous ARP repeat = 5
Gratuitous ARP refresh = 0
Gratuitous ARP refresh repeat = 1
Gratuitous ARP lower priority delay = 5
Gratuitous ARP lower priority repeat = 5
Send advert after receive lower priority advert = true
Send advert after receive higher priority advert = false
Virtual Router ID = 53
Priority = 200
Effective priority = 200
Total priority = 200
Advert interval = 1 sec
Accept = enabled
Preempt = enabled
Promote_secondaries = disabled
Authentication type = none
Virtual IP = 1
192.168.53.253/24 dev eth2.53v53 scope global
Unicast Peer = 1
192.168.53.254
Unicast checksum compatibility = no
fd_in 15, fd_out 16
Using smtp notification = no
------< VRRP Sync groups >------
VRRP Sync Group = sync, MASTER
VRRP member instances = 1
cam
Using smtp notification = noName = eth2.53
index = 10
IPv4 address = 192.168.53.252
IPv6 address = fe80::215:5dff:fe01:9f14
MAC = 00:15:5d:01:9f:14
MAC broadcast = ff:ff:ff:ff:ff:ff
State = UP, RUNNING
MTU = 1500
HW Type = ETHERNET
NIC netlink status update
Reset ARP config counter 1
Original arp_ignore 1
Original arp_filter 1
rp_filter 0
Original promote_secondaries 0
Reset promote_secondaries counter 0
Tracking VRRP instances = 1
cam, weight 0Name = eth2.53v53
index = 14
IPv4 address = (none)
IPv6 address = (none)
MAC = 00:00:5e:00:01:35
MAC broadcast = ff:ff:ff:ff:ff:ff
State = UP, RUNNING
VMAC type private, underlying interface = eth2.53, state = UP, RUNNING
I/f created by keepalived
MTU = 1500
HW Type = ETHERNET
NIC netlink status update
Reset ARP config counter 0
Original arp_ignore 1
Original arp_filter 0
rp_filter 0
Original promote_secondaries 1
Reset promote_secondaries counter 0
Tracking VRRP instances = 1
cam, weight 0