Would you please post the content of /etc/rc.conf (and /usr/local/etc/rc.conf – if you have it)?My rc.conf uses the configuration created by the installation program.
hostname="myserver.host.com"
zfs_enable="YES"
powerd_enable="NO"
powerdxx_enable="YES"
powerdxx_flags="-n adaptive -a hiadaptive -b adaptive -m 800 -M 1600"
rc_fast="YES"
rc_info="NO"
rc_startmsgs="NO"
devfs_system_ruleset="system"
autoboot="YES"
background_dhclient="YES"
defaultroute_delay="0"
ifconfig_re0="DHCP"
ifconfig_re0_ipv6="inet6 accept_rtadv"
sshd_enable="YES"
moused_enable="YES"
ntpd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
firewall_enable="YES"
firewall_type="workstation"
firewall_logging="YES"
firewall_quiet="YES"
cupsd_enable="YES"
dbus_enable="YES"
hald_enable="YES"
sddm_enable="YES"
ifconfig_re0="DHCP"
ifconfig_re0="inet 192.168.0.25 netmask 255.255.255.0"
defaultrouter="192.168.0.1"
ifconfig re0
and netstat -rn
. Old leases are kept around in case the DHCP server is unavailable when
dhclient is first invoked (generally during the initial system boot
process). In that event, old leases from the dhclient.leases.IFNAME file
which have not yet expired are tested, and if they are determined to be
valid, they are used until either they expire or the DHCP server becomes
available.
A mobile host which may sometimes need to access a network on which no
DHCP server exists may be preloaded with a lease for a fixed address on
that network. When all attempts to contact a DHCP server have failed,
dhclient will try to validate the static lease, and if it succeeds, it
will use that lease until it is restarted.
service dhclient restart re0
.Your login actually has nothing to do with it.I'm still somewhat new to BSD and I wouldn't know about environment variables set by the login script.
There is no magic, I already explained above: when you have your switch connected to the PC, the OS detects physical connection and tries to get an IP address by sending DHCP requests. After timeout it doesn't try anymore since the status of physical connection doesn't change. When your modem is connected to the PC and it's off, there is no actual physical connection (no carrier), the DHCP client doesn't even try sending anything out. When the modem is up, the OS detects carrier and starts DHCP communication.I have no problems using DHCP ... if the modem is plugged directly into the motherboard's Ethernet connector. ... Not sure if there is a conflict with LinkSys.