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:
@ -85,6 +85,13 @@ pkg which <filename> # find out which package installed a giv
|
||||
# Network
|
||||
|
||||
```
|
||||
ifconfig <iface> inet <ip/mask> # configure IP address on interface
|
||||
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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user