I´ve a question regarding the distribution of subnets within my linux system or more specifically ubuntu. If I set a ip-adresse with a netmask, how will ubuntu set the netaddress and broadaddress of this specificy subnet.
First example: I´m adding one ip address via:
ip addr add 198.168.0.10/24 dev eth0
Will ubuntu set the netaddress to 198.168.0.0 and broadaddress to 198.168.0.255?
Second example: I´m adding multiple subnets to eth0:
ip addr add 198.168.0.20/27 dev eth0 ip addr add 198.168.0.50/27 dev eth0 ip addr add 198.168.0.70/27 dev eth0 ip addr add 198.168.0.100/27 dev eth0
Will ubuntu set the addresses according to the first example like 198.168.0.0 for the first netaddress, 198.168.0.32 for the second netaddress and so on?
One last question: Would I specify subnets like I just did in the second example?