0

community. Could you help me with the next question? I'll have a server Linux with 2 NIC in the same network ens33 192.168.23.2 ens34 192.168.23.3 and plugin in different switches: I want to use Virtual IP (Floating IP) for example 192.168.23.100 i.e. if ens33 down so IP should be migrate on ens34 I'll try to use keepalived and this work but not graceful solutions. i.e. I'll create 2 Instances for 1 Virtual IP. and him not floating just have secondary ip on both interfaces:

2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:81:8d:d7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.23.24/24 brd 192.168.23.255 scope global dynamic ens33
       valid_lft 21380sec preferred_lft 21380sec
    inet 192.168.23.223/24 scope global secondary ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe81:8dd7/64 scope link 
       valid_lft forever preferred_lft forever
3: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:81:8d:e1 brd ff:ff:ff:ff:ff:ff
    inet 192.168.23.34/24 brd 192.168.23.255 scope global dynamic ens34
       valid_lft 21566sec preferred_lft 21566sec
    inet 192.168.23.223/24 scope global secondary ens34
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe81:8de1/64 scope link 
       valid_lft forever preferred_lft forever

i think have more gracefull solutions, but i cant found it. P.S Switches dosent support stacking so i cant use Bounding(LACP) for this case

0 Answers0