Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Akshat Kakkar
Thanks. Thanks a lot for clarifying all this. On Tue, May 29, 2018 at 3:59 PM, Michal Kubecek wrote: > On Tue, May 29, 2018 at 03:39:05PM +0530, Akshat Kakkar wrote: >> For following commands, >> ip addr add 10.10.10.1/24 brd + dev br0 >> ip addr add 10.10.10.2/24 brd + dev br0 >> ip addr

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Michal Kubecek
On Tue, May 29, 2018 at 03:39:05PM +0530, Akshat Kakkar wrote: > For following commands, > ip addr add 10.10.10.1/24 brd + dev br0 > ip addr add 10.10.10.2/24 brd + dev br0 > ip addr add 20.20.20.1/24 brd + dev br0 > ip addr add 20.20.20.2/24 brd + dev br0 > > Both 10.10.10.1 and 20.20

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Akshat Kakkar
For following commands, ip addr add 10.10.10.1/24 brd + dev br0 ip addr add 10.10.10.2/24 brd + dev br0 ip addr add 20.20.20.1/24 brd + dev br0 ip addr add 20.20.20.2/24 brd + dev br0 Both 10.10.10.1 and 20.20.20.1 becomes primary. Which one will be used as source IP? Is it nextHop of

Re: Unable to create ip alias on bridge interface

2018-05-29 Thread Michal Kubecek
On Mon, May 28, 2018 at 11:50:05PM +0530, Akshat Kakkar wrote: > 1. How can this survive across reboots without having a custom script > on boot up? Like some ifcfg file,etc. Every reasonable distribution should provide a way to use more than one address on an interface. But as there is no univers

Re: Unable to create ip alias on bridge interface

2018-05-28 Thread Akshat Kakkar
Thanks for clarifying that first ip will be used as primary ip. I have 2 further queries on this. 1. How can this survive across reboots without having a custom script on boot up? Like some ifcfg file,etc. 2. is there a way to tell to make a given ip as primary, irrespective of order? On Mon, May

Re: Unable to create ip alias on bridge interface

2018-05-28 Thread Michal Kubecek
On Mon, May 28, 2018 at 02:35:41PM +0530, Akshat Kakkar wrote: > I am having a bridge named br0 having ports eno1 and eno2 as members. > I have given IP to br0 as 10.10.10.1/24 > > Now I want to create alias on br0 as br0:1 and give IP as > 10.10.10.2/24, but I am unable to. > > I know, we can ad