ip alias mac os
Leave a comment Go to comments
Open terminal:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Last login: Wed Sep 29 14:00:19 on console MacBook-Pro:~ agusr$ ifconfig lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet 127.0.0.1 netmask 0xff000000 gif0: flags=8010 mtu 1280 stf0: flags=0<> mtu 1280 en0: flags=8863 mtu 1500 ether c4:2c:03:01:b3:ed inet6 fe80::c62c:3ff:fe01:b3ed%en0 prefixlen 64 scopeid 0x4 inet 203.30.236.125 netmask 0xfffffff8 broadcast 203.30.236.127 media: autoselect (100baseTX ) status: active ---------- cut ------------ |
1 2 3 4 5 6 7 8 9 10 11 12 13 | Primary active interface "en0" MacBook-Pro:~ agusr$ sudo ifconfig en0 alias 192.168.10.200 255.255.255.0 Password: MacBook-Pro:~ agusr$ ifconfig en0 en0: flags=8863 mtu 1500 ether c4:2c:03:01:b3:ed inet6 fe80::c62c:3ff:fe01:b3ed%en0 prefixlen 64 scopeid 0x4 inet 203.30.236.125 netmask 0xfffffff8 broadcast 203.30.236.127 inet 192.168.10.200 netmask 0xffffff00 broadcast 255.255.255.0 media: autoselect (100baseTX ) status: active |
Now how to remove ip alias ?
Just type:
MacBook-Pro:~ agusr$ sudo ifconfig en0 -alias 192.168.10.200 255.255.255.0