Feature request: CARP awareness in BIRD?

Alarig Le Lay alarig at swordarmor.fr
Mon Jun 6 12:39:43 CEST 2022


On Fri 03 Jun 2022 17:40:23 GMT, Ondrej Zajicek wrote:
> 3) If someone use that on Linux, could send me output of 'ip address show'
> for these ifaces?

I’m using vrrp on linux, with the macvlan option to be compatible with
cisco.

Inactive router:
asbr02 ~ # ip a sh enp3s0f1.30
12: enp3s0f1.30 at enp3s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:1b:21:48:68:99 brd ff:ff:ff:ff:ff:ff
    inet 89.234.186.6/27 brd 89.234.186.31 scope global enp3s0f1.30
       valid_lft forever preferred_lft forever
    inet6 2a00:5884::6/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::21b:21ff:fe48:6899/64 scope link
       valid_lft forever preferred_lft forever
asbr02 ~ # ip a sh vrrp.1
17: vrrp.1 at enp3s0f1.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:00:5e:00:01:01 brd ff:ff:ff:ff:ff:ff
asbr02 ~ # ip a sh vrrp6.1
18: vrrp6.1 at enp3s0f1.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:00:5e:00:02:01 brd ff:ff:ff:ff:ff:ff
asbr02 ~ #

Active router:
asbr03 ~ # ip a sh enp1s0d1.30
6: enp1s0d1.30 at enp1s0d1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:02:c9:28:92:bf brd ff:ff:ff:ff:ff:ff
    inet 89.234.186.15/27 brd 89.234.186.31 scope global enp1s0d1.30
       valid_lft forever preferred_lft forever
    inet6 2a00:5884::d/64 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::202:c9ff:fe28:92bf/64 scope link
       valid_lft forever preferred_lft forever
asbr03 ~ # ip a sh vrrp.1
11: vrrp.1 at enp1s0d1.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:00:5e:00:01:01 brd ff:ff:ff:ff:ff:ff
    inet 89.234.186.1/32 scope global vrrp.1
       valid_lft forever preferred_lft forever
asbr03 ~ # ip a sh vrrp6.1
12: vrrp6.1 at enp1s0d1.30: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:00:5e:00:02:01 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::204:92:100:1/128 scope link nodad deprecated
       valid_lft forever preferred_lft 0sec
asbr03 ~ #

Here are my configurations:
asbr02 ~ # grep -Pv '^$|^#|^\s+#' /etc/keepalived/keepalived.conf
vrrp_instance vrrp_vip_asbr02_ipv4 {
    interface enp3s0f1.30
    virtual_router_id 1
    priority 100
    advert_int 1
    use_vmac
    vmac_xmit_base
    notify /usr/local/bin/keepalivednotify.sh
    virtual_ipaddress {
        89.234.186.1/32
    }
}
vrrp_instance vrrp_vip_asbr02_ipv6 {
    state MASTER
    interface enp3s0f1.30
    virtual_router_id 1
    priority 151
    advert_int 1
    use_vmac
    vmac_xmit_base
    notify /usr/local/bin/keepalivednotify.sh
    virtual_ipaddress {
        FE80:0:0:0:204:92:100:1/128
    }
}

asbr03 ~ # grep -Pv '^$|^#|^\s+#' /etc/keepalived/keepalived.conf
vrrp_instance vrrp_vip_vlan30_ipv4 {
	state BACKUP
	interface enp1s0d1.30
	virtual_router_id 1
	priority 200
	advert_int 1
	use_vmac
	vmac_xmit_base
	notify /usr/local/bin/keepalivednotify.sh
	virtual_ipaddress {
		89.234.186.1/32
	}
}
vrrp_instance vrrp_vip_vlan30_ipv6 {
	state BACKUP
	interface enp1s0d1.30
	virtual_router_id 1
	priority 200
	advert_int 1
	use_vmac
	vmac_xmit_base
	notify /usr/local/bin/keepalivednotify.sh
	virtual_ipaddress {
		FE80:0:0:0:204:92:100:1/128
	}
}

-- 
Alarig


More information about the Bird-users mailing list