How could I get the current network address of a specific interface (not the ip address, but the network address) ?
For example, if I run the following command on terminal ip a show <interace> | grep inet
I get a result similar to this.nn
inet 192.168.43.157/24 brd 192.168.43.255 scope global dynamic noprefixroute wlo1
inet6 fe80::6877:db06:4b23:7a7c/64 scope link noprefixroute
In this example my current IP address is 192.168.45.157/24 but the network address (which I am looking for) is 192.168.43.0/24.
How I would get the network address ?