FreeBSD ifconfig: Difference between revisions
From wikinotes
No edit summary |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| <code>man ifconfig</code> || https://www.freebsd.org/cgi/man.cgi?query=ifconfig&apropos=0&sektion=0&manpath=FreeBSD+13.0-RELEASE+and+Ports&arch=default&format=html | | <code>man ifconfig</code> || https://www.freebsd.org/cgi/man.cgi?query=ifconfig&apropos=0&sektion=0&manpath=FreeBSD+13.0-RELEASE+and+Ports&arch=default&format=html | ||
|- | |||
| freebsd handbook: network communication || https://docs.freebsd.org/en/books/handbook/partiv/ | |||
|- | |- | ||
|} | |} | ||
</blockquote><!-- Documentation --> | </blockquote><!-- Documentation --> | ||
= | = Usage = | ||
<blockquote> | |||
== Interactive == | |||
<blockquote> | <blockquote> | ||
manipulate interfaces within shell. | manipulate interfaces within shell. | ||
Line 20: | Line 23: | ||
ifconfig tun0 destroy | ifconfig tun0 destroy | ||
</source> | </source> | ||
</blockquote><!-- Interactive --> | |||
== Persistent == | == Persistent == | ||
<blockquote> | |||
define interfaces to setup at boot. | define interfaces to setup at boot. | ||
Line 31: | Line 36: | ||
defaultrouter="192.168.1.1" # your local nameserver | defaultrouter="192.168.1.1" # your local nameserver | ||
</source> | </source> | ||
</blockquote><!-- | </blockquote><!-- Persistent --> | ||
</blockquote><!-- Usage --> | |||
</blockquote><!-- |
Latest revision as of 03:36, 7 August 2021
FreeBSD uses ifconfig
to manage network interfaces.
Documentation
man ifconfig
https://www.freebsd.org/cgi/man.cgi?query=ifconfig&apropos=0&sektion=0&manpath=FreeBSD+13.0-RELEASE+and+Ports&arch=default&format=html freebsd handbook: network communication https://docs.freebsd.org/en/books/handbook/partiv/
Usage
Interactive
manipulate interfaces within shell.
# create/destroy a network interface of type 'tun' ifconfig tun create up ifconfig tun0 destroyPersistent
define interfaces to setup at boot.
# /etc/rc.conf cloned_interfaces="bridge0 brige1" # space separated virtual interfaces to create ifconfig_bridge0="inet 10.0.1.1/8" # assign ip address to bridge0 defaultrouter="192.168.1.1" # your local nameserver