Configuring network-settings in the shell
September 12, 2002 4:01AM
edited January 2014
How is it done? What commands do I use to print out my current network settings like IP and Name-servers, and what commands do I use to edit them from the terminal?
Reply 1 of 2
September 12, 2002 6:21AM
$ ifconfig -a (shows your NICs and ip/mask/broadcast)
$ netstat -rn (shows routes including default)
> set all (prints out DNS details if entered)
$ ifconfig en0 10.10.10.20 netmask 255.255.255.128 broadcast 10.10.10.127 (this will config your NIC to the ip address 10.10.10.20 with a 25bit mask).
[ 09-12-2002: Message edited by: dobby ]</p>
Reply 2 of 2
September 12, 2002 7:17AM
also look at the man pages: (
just type in the text below an hit return