Having moved my old 266 Mhz Celeron to our apartment and facing a new (actually pretty old) router I needed to make adjustments to the FreeBSD 7.0 install, namely network related adjustments.
So here is a series of commands on how to start, stop and restart the network service on FreeBSD:
Start the network service:
- % su
- # /etc/rc.d/netif start
Stop the network service:
- % su
- # /etc/rc.d/netif stop
Restart the network service:
- % su
- # /etc/rc.d/netif restart
When performing network setting changes it's often necessary to
restart the routing service:
- % su
- # /etc/rc.d/routing restart
To
restart both the network and routing services simply combine the commands:
- % su
- # /etc/rc.d/netif restart && /etc/rc.d/routing restart
If you come accross a status: no carrier message, run the following (substitute re0 by your interface):
- % su
- ifconfig re0 down
- ifconfig re0 up
Documentation on how to setup network interfaces can be found at
http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html.
No comments:
Post a Comment