Thursday, 19 January 2012

FreeBSD Network & Routing table restart

To restart the network interface:
# /etc/rc.d/netif [start|stop|restart]

Renewing a DHCP lease:

# /sbin/dhclient em0


To update / restart routing tables (netif does not automatically update the routing table after restating)

# /etc/rc.d/routing restart

Hostname change:
/bin/hostname xxx
and also remember to /etc/rc.conf

To do these over a SSH session  type the commands as follows

# /etc/rc.d/netif restart && /etc/rc.d/routing restart

No comments:

Post a Comment