3 ms·
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 inet 192.168.101.12/24 brd 192.168.101.255 scope glob
by Hikikomori 7y ago
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
inet 192.168.101.12/24 brd 192.168.101.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.1.25/32 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.1.32/31 scope global eth0
valid_lft forever preferred_lft forever
Seems to work fine, added a /31 just for fun.
- moviuro 7y agoif you remove the /24 you'll have a nice surprise
- Hikikomori 7y agoNot really a surprise. The point is that it is a completely valid address to use, and in this case it just defines a range. /32 are commonly used in routers (even servers in some cases) and /31 for linknets.