FreeBSD Networking

From Exterior Memory
Revision as of 00:24, 6 September 2014 by MacFreek (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To start a interface (this will start whatever is configured in rc.conf, like a DHCP client):

service netif start em0

To bring down a interface (this will remove routes, etc.):

service netif stop em0

(service netif simply calls /etc/rc.d/netif)

To simply bring an interface up or down without any changes to the routing table, ifconfig em0 start or ifconfig em0 stop suffices.