On 05/19/2014 02:18 AM, Baoquan He wrote:
On 05/14/14 at 10:34am, Marc Milgram wrote:
> Vivek,
> Each IP address has its own netmask. With this fix, we don't read
> the ifcfg file to obtain the address and netmask, we get it from "ip
> addr show dev <netdev>" commands.
Now if PREFIXn related to one IPADDRn is not specified when multiple IP
address are set, the unspecified PREFIXn will be the same as other one
which is in the same ifcfg-ethxx. Like blow, it works too.
IPADDR0=192.168.122.110
IPADDR1=10.10.10.10
PREFIX1=24
GATEWAY0=192.168.122.1
Maybe it's a default behavior? I am not sure about it. Otherwise I am
fine with this patch.
>
Baoquan,
Both NetworkManager-gui and nmtui always add a PREFIXx line for each
IPADDRx line in the ifcfg file.
Each PREFIX line in a file may be the same or different from other
PREFIX lines in the file.
If PREFIX line is missing for an IPADDR line, when that interface is
started, the prefix is the default for the address class - ie. 8 for C
class addresses and 10 for A class addresses.
Regards,
Marc