|
|
| (8 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =Configfiles=
| | *[[network config freebsd]] |
| ==static==
| | *[[ifconfig freebsd]] |
| */etc/rc.conf
| | *[[route freebsd]] |
| hostname="free-willy"
| |
| ifconfig_re0="inet 10.82.11.100 netmask 255.255.0.0"
| |
| defaultrouter="10.82.0.1
| |
| static_routes="vlan1 vlan2"
| |
| route_vlan1="-net 10.81.0.0/16 10.83.39.1"
| |
| route_vlan2="-net 10.82.0.0/16 10.83.39.2"
| |
| | |
| ==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
| |
| =Manual=
| |
| ==Interface==
| |
| *ifconfig re1 10.83.39.1 netmask 255.255.255.0 up | |
| ==Route==
| |
| Net
| |
| *route add -net 10.81.0.0/16 10.83.39.254 | |
| Default
| |
| *route add default 10.84.254.1
| |
| =Tools=
| |
| *[[netstat freebsd]] | | *[[netstat freebsd]] |
| ==sokstat==
| | *[[sockstat freebsd]] |
| ===ipv4===
| | *[[ifmcstat]] |
| *sockstat -4 | | *[[CARP FreeBSD]] |
| <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 |