I would like to run "ifconfig -a" to see what's the names of the network interfaces. e.g.
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
elxl0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.2.40 netmask ffffff00 broadcast 192.168.2.255
Then execute:
ifconfig elxl0 some_new_IP_address netmask some_network_mask
e.g.
ifconfig elxl0 192.168.2.41 netmask 255.255.0.0
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.