To start FreeBSD network service:
# /etc/rc.d/netif startTo stop FreeBSD network service:
# /etc/rc.d/netif stopTo restart FreeBSD network service:
# /etc/rc.d/netif restartManual method using ifconfig
To stop network card (NIC) on-fly:# ifconfig network-interface downTo start network card (NIC) on fly:
# ifconfig network-interface upTo list down network interface:
# ifconfig -dTo list up network interface:
# ifconfig -uFreeBSD Update / restart routing tables / service
It is also necessary to update routing table after restating networking service, enter:# /etc/rc.d/routing restartHow do I restart network service over ssh session?
You need to type the commands as follows in order to avoid any problems:# /etc/rc.d/netif restart && /etc/rc.d/routing restartFreeBSD 4.x and prior version only - start, restart, stop network service
1) To start network service under FreeBSD you need to copy specialscript as follows:
# cp /usr/share/examples/etc/netstart /etc/network2) Execute script:
. /etc/networkOR
sh /etc/networkPlease note that script will do all necessary work for you i.e. it will start network, routing, firewall etc.
댓글 없음:
댓글 쓰기