Créer :
/etc/hostname.em0
Ajouter :
inet 192.168.1.200 255.255.255.0 NONE
Ouvrir :
/etc/resolv.conf
Remplacer tout par :
nameserver 192.168.1.1
lookup file bind
local# sh /etc/netstart
local# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
index 3 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 52:55:00:d1:55:01
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255
enc0: flags=0<>
index 2 priority 0 llprio 3
groups: enc
status: active
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 4 priority 0 llprio 3
groups: pflog
local# ping -c 2 google.fr
PING google.fr (172.217.22.131): 56 data bytes
64 bytes from 172.217.22.131: icmp_seq=0 ttl=114 time=42.571 ms
64 bytes from 172.217.22.131: icmp_seq=1 ttl=116 time=41.933 ms
--- google.fr ping statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 41.933/42.252/42.571/0.319 ms