FreeBSD 7 - How to restart networking services
tonyn | July 21, 2009On Linux system, we can run /etc/init.d/network restart to restart networking servrices. But, on FreeBSD, it is different.
With FreeBSD 7, to start FreeBSD networking services, run:
/etc/rc.d/netif start
To stop FreeBSD networking services:
/etc/rc.d/netif stop
and restart the FreeBSD network services, run:
/etc/rc.d/netif restart
Configure FreeBSD networking manually
Usually, on all Unix/Linux and Unix-like systems, we can use ifconfig command to configure network interface and IP address.
On FreeBSD 7, to shutdown a network interface, run:
ifconfig em0 down
To bring up a NIC, run:
ifconfig em0 up
You can run ifconfig -a to list all interfaces with IP address, netmask, MAC address and other NIC information.
To list all shuted down NIC, run:
ifconfig -d
To list all up and running NIC, run:
ifconfig -u
For more information about ifconfig, run:
man ifconfig