User Tools

Site Tools


network_on_freebsd

Configurazione di un posto con IP fisso, in biblioteca:

root@BiblioFreeBSD:~ # cat /etc/rc.conf
hostname="BiblioFreeBSD"
keymap="fr.kbd"

local_unbound_enable="YES"

# ifconfig_re0="DHCP"
ifconfig_re0="inet 10.73.25.153 netmask 255.255.255.0"

# defaultrouter="10.73.25.254"

ifconfig_em0="inet 10.42.0.1 netmask 255.255.255.0"

static_routes="net1 net2"
route_net1="-net 10.73.25.254"
route_net2="-net 10.42.0.255"

# Add Internal Net 2 as a persistent static route
# static_routes="internalnet2"
# route_internalnet2="-net 192.168.2.0/24 192.168.1.2"

sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
powerd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
zfs_enable="YES"

# Aggiunti da Francesco

dbus_enable="YES"

kld_list="/boot/modules/i915kms.ko"

cupsd_enable="YES"
devfs_system_ruleset="system"

gateway_enable="YES"
root@BiblioFreeBSD:~ # cat /etc/resolv.conf
# Generated by resolvconf
# nameserver 10.42.1.1
nameserver 194.2.0.20
nameserver 194.2.0.50
nameserver 127.0.0.1
# options edns0

Sul Dell_T20 con FreeBSD [aprlile 2020] in cat /etc/resolv.conf ho messo:

nameserver 194.2.0.20
nameserver 194.2.0.50
nameserver 127.0.0.1

[febbraio 2021]

Un vecchio Zotac in biblioteca con FreeBSD ha:

root@Zotac:~ # cat /etc/rc.conf
sendmail_enable="NONE"
hostname="Zotac"
keymap="fr.kbd"
#ifconfig_re0="DHCP"
ifconfig_re0="inet 10.73.25.154 netmask 255.255.255.0"
sshd_enable="YES"
ntpdate_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"

defaultrouter="10.73.25.254"

firewall_enable="YES"
firewall_script="/etc/ipfw.rules"

e

root@Zotac:~ # cat /etc/resolv.conf
# Generated by resolvconf
nameserver 127.0.0.1
nameserver 194.2.0.20
nameserver 194.2.0.50
network_on_freebsd.txt · Last modified: 2021/02/11 14:34 by francesco