my ifconfig lo0 looks like this:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet netmask 0xffffff00
nd6 options=201<PERFORMNUD,DAD>

I need to add inet netmask 0xff000000. How can I do it ?

  • 1
    In Terminal, what's the output of: cat /etc/hosts – user3439894 Jul 30 '18 at 11:32
  • 1
    Just out of curiosity, how did lo0 come to have that IP address assigned to it? – Seamus Jul 30 '18 at 13:12

Run this command in the Terminal:

ifconfig lo0

Or if you want to keep your current (odd) address for the lo0 interface, then add as an additional (alias) address with:

ifconfig lo0 alias
| improve this answer | |
  • Don't work for me. I found the solution -> ifconfig lo0 alias – Рома Бойко Jul 31 '18 at 14:23
  • 1
    Your setup seems generally broken if you have a 192.168.x.x address on an lo0 interface? Why do you need that? – jksoegaard Jul 31 '18 at 19:52
  • I added this for my docker – Рома Бойко Aug 1 '18 at 8:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .