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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s