[cs615asa] [CS615] getting subnet masks from ifconfig
Xiakun Lu
xlu9 at stevens.edu
Thu Mar 12 17:14:53 EDT 2015
$ ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
$ ifconfig -a | ifcfg-data -n
0xff000000
0xffffff00
Hi professor,
“prefixlen 64” is also a net mask, but you don’t output it in your example.
Is that ok if I output “64”.
> How about this cases:
>
> inet6 ::1/128
>
> Should "ifconfig -a | ifcfg-data -n? output ?/128? ?
That would be reasonable.
Best Regards,
Xiakun Lu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20150312/d24a7bd0/attachment.html>
More information about the cs615asa
mailing list