1
0
mirror of https://github.com/hukl/freebsd-toolbox.git synced 2025-11-20 03:08:43 +01:00

Update commands.md

This commit is contained in:
John-Paul Bader
2014-04-26 08:24:56 +02:00
parent 5bf09f83c1
commit 503589fa46

View File

@ -85,8 +85,15 @@ pkg which <filename> # find out which package installed a giv
# Network # Network
``` ```
/etc/rc.d/netif restart && \ # restart networking and routing after changing the configuration ifconfig <iface> inet <ip/mask> # configure IP address on interface
/etc/rc.d/routing restart without rebooting. Execute in tmux or screen session ifconfig <iface> inet <ip/mask> alias # configure IP address alias on interface
ifconfig <iface> del <ip> # remove IP address from interface
route add -net default <gw_ip> # add default route
route add -net <ip/mask> <gw_ip> # add a custom route for given network
netstat -rn # display routing table
netstat -an # display all connections
/etc/rc.d/netif restart && \ # restart networking and routing after changing the configuration
/etc/rc.d/routing restart without rebooting. Execute in tmux or screen session
``` ```
# IPsec # IPsec