|
|
| (13 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =Configfiles=
| | *[[network config freebsd]] |
| ==static==
| | *[[ifconfig freebsd]] |
| */etc/rc.conf | | *[[route freebsd]] |
| hostname="free-willy"
| | *[[netstat freebsd]] |
| ifconfig_re0="inet 10.82.11.100 netmask 255.255.0.0"
| | *[[sockstat freebsd]] |
| defaultrouter="10.82.0.1
| | *[[ifmcstat]] |
| ==dhcp==
| | *[[CARP FreeBSD]] |
| */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 | |
| <pre>
| |
| 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
| |
| </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>
| |
| ==sokstat==
| |
| ===ipv4===
| |
| *sockstat -4 | |
| <pre>
| |
| USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
| |
| root sshd 671 3 tcp4 10.82.11.100:8472 10.81.1.11:52842
| |
| root sendmail 609 3 tcp4 127.0.0.1:25 *:*
| |
| www httpd 590 4 tcp4 *:80 *:*
| |
| www httpd 589 4 tcp4 *:80 *:*
| |
| www httpd 588 4 tcp4 *:80 *:*
| |
| www httpd 587 4 tcp4 *:80 *:*
| |
| www httpd 586 4 tcp4 *:80 *:*
| |
| root httpd 584 4 tcp4 *:80 *:*
| |
| root sshd 579 4 tcp4 *:8472 *:*
| |
| root sshd 579 6 tcp4 *:22 *:*
| |
| root nfsd 512 5 tcp4 *:2049 *:*
| |
| root mountd 506 7 udp4 *:993 *:*
| |
| root mountd 506 8 tcp4 *:993 *:*
| |
| root rpcbind 395 9 udp4 *:111 *:*
| |
| root rpcbind 395 10 udp4 *:818 *:*
| |
| root rpcbind 395 11 tcp4 *:111 *:*
| |
| root syslogd 386 7 udp4 *:514 *:*
| |
| ? ? ? ? udp4 *:2049 *:*
| |
| </pre>
| |
| | |
| =Links= | | =Links= |
| *https://www.freebsd.org/doc/handbook/config-network-setup.html | | *https://www.freebsd.org/doc/handbook/config-network-setup.html |