From 503589fa46958c75a292d8973cc9d9cd7bfddfa1 Mon Sep 17 00:00:00 2001 From: John-Paul Bader Date: Sat, 26 Apr 2014 08:24:56 +0200 Subject: [PATCH] Update commands.md --- commands.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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