Freebsd network: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Thomas (Diskussion | Beiträge)
Zeile 15: Zeile 15:
=Tools=
=Tools=
==netstat==
==netstat==
==TCP ports==
* netstat -nl -p tcp
* netstat -nl -p tcp
<pre>
<pre>
Zeile 20: Zeile 21:
Proto Recv-Q Send-Q Local Address            Foreign Address                    (state)
Proto Recv-Q Send-Q Local Address            Foreign Address                    (state)
tcp4      0      0 10.82.11.100.8472        10.81.1.11.50928                    ESTABLISHED
tcp4      0      0 10.82.11.100.8472        10.81.1.11.50928                    ESTABLISHED
</pre>
==show routing table==
*netstat -f inet -rn
<pre>
Routing tables
Internet:
Destination        Gateway            Flags    Netif Expire
default            10.82.0.1          UGS        re0
10.82.0.0/16      link#1            U          re0
10.82.11.100      link#1            UHS        lo0
127.0.0.1          link#2            UH          lo0
</pre>
</pre>


=Links=
=Links=
*https://www.freebsd.org/doc/handbook/config-network-setup.html
*https://www.freebsd.org/doc/handbook/config-network-setup.html

Version vom 28. Oktober 2017, 21:30 Uhr

Configfiles

static

  • /etc/rc.conf
hostname="free-willy"
ifconfig_re0="inet 10.82.11.100 netmask 255.255.0.0"
defaultrouter="10.82.0.1

dhcp

  • /etc/rc.conf
ifconfig_re0="DHCP"

Nameserver

  • cat /etc/resolv.conf
search xinux.lan tuxmen.de
nameserver 10.80.0.2
nameserver 10.80.0.3

Tools

netstat

TCP ports

  • netstat -nl -p tcp
Active Internet connections
Proto Recv-Q Send-Q Local Address             Foreign Address                     (state)
tcp4       0      0 10.82.11.100.8472         10.81.1.11.50928                    ESTABLISHED

show routing table

  • netstat -f inet -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            10.82.0.1          UGS         re0
10.82.0.0/16       link#1             U           re0
10.82.11.100       link#1             UHS         lo0
127.0.0.1          link#2             UH          lo0

Links