diff --git a/commands.md b/commands.md index ff92f7e..804a662 100644 --- a/commands.md +++ b/commands.md @@ -85,8 +85,15 @@ pkg which # find out which package installed a giv # Network ``` - /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 +ifconfig inet # configure IP address on interface +ifconfig inet alias # configure IP address alias on interface +ifconfig del # remove IP address from interface +route add -net default # add default route +route add -net # 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