Freebsd network

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

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