比如修改en0的ip地址。chdev -l en0 -a netaddr=192.168.1.100 -a netmask=255.255.255.0 -a state=up
启用en0 网卡ifconfig en0 up