On 12/22/22 18:56, Samuel Sieb wrote:
On 12/22/22 18:48, ToddAndMargo via users wrote:
> On 12/22/22 18:30, Samuel Sieb wrote:
>> On 12/22/22 18:20, ToddAndMargo via users wrote:
>>> Hi All,
>>>
>>> nmcli dev show eno2
>>>
>>> Give me tons of wonderful information about my interface.
>>>
>>> Missing is:
>>> network (192.168.1.0 etc.)
>>> broadcast (192.168.1.255 etc.)
>>>
>>> Any way to get nmcli to cough them up?
>>>
>>> Many thanks,
>>> -T
>>>
>>> p.s, the "network" is not always the lowest
>>> address in the subnet mask. At&t fiber
>>> likes to reverse the network and the
>>> broadcast address.
>>
>> Then they are wrong. That's the definition of those entries.
>>
>> Network is the value with all the masked bits set to 0.
>> Broadcast is the value with all the masked bits set to 1.
>
> Makes sense that they were not following spec.
> Confused the dickens out of me until I realized
> what they were up to.
>
> Do you know a way to get nmcli to cough up
> network and broadcast? I know I can figure
> them out myself but ...
"ip addr eno2" will show you the broadcast address.
You can use "ipcalc 192.168.1.10/24" to get all the values.
$ ip addr eno2
Command "eno2" is unknown, try "ip address help".
:'(
$ ipcalc 192.168.1.10/24
Address: 192.168.1.10
Network: 192.168.1.0/24
Netmask: 255.255.255.0 = 24
Broadcast: 192.168.1.255
Address space: Private Use
HostMin: 192.168.1.1
HostMax: 192.168.1.254
Hosts/Net: 254
:-)
Thank you!