Date: Mon, 4 Aug 1997 18:18:41 -0700 (PDT) From: marc@tear.com To: freebsd-gnats-submit@FreeBSD.ORG Subject: conf/4229: Ethernet interface unreachable on bootup Message-ID: <199708050118.SAA10449@hub.freebsd.org> Resent-Message-ID: <199708050120.SAA10553@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4229
>Category: conf
>Synopsis: Ethernet interface unreachable on bootup
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Aug 4 18:20:01 PDT 1997
>Last-Modified:
>Originator: Marc Mosko
>Organization:
Forte Systems
>Release: FreeBSD 3.0-970522-SNAP
>Environment:
FreeBSD farpoint.pactel.com 3.0-970522-SNAP FreeBSD 3.0-970522-SNAP
#0: Sun Aug 3 11:31:37 PDT 1997
root@farpoint.pactel.com:/usr/src/sys/compile/MARC i386
>Description:
On bootup, the "de0" ethernet interface is unusable. I must delete
the interface and recreate it w/ "ifconfig", then it is usable.
I believe the actual Ethernet card is the SMC Etherpower 10/100 PCI.
It is operating in 10 Mbps mode.
Routed does not see the interface, nor does the "route" command.
Yes, it's a recompiled kernel, but I checked with kernel.GENERIC and
the problem exists there too.
>How-To-Repeat:
Below is info I thought might be useful. It shows the initial state
via netstat and ifconfig and the commands I use to get the interface
in a working state. Really, this is a workaround, not a fix.
I've also included the /etc/rc.conf file. None of the other /etc/rc*
files are modified.
# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
127.0.0.1 127.0.0.1 UH 0 0 lo0
205.80.26.176/29 link#1 UC 0 0
#
# ifconfig -a
de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 205.80.26.179 netmask 0xfffffff8 broadcast 205.80.26.183
ether 00:00:c0:bc:37:bf
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
#
# ifconfig de0 delete
# Aug 4 17:55:44 farpoint routed[55]: IP_DROP_MEMBERSHIP ALLHOSTS: Can't assign requested
address
Aug 4 17:55:44 farpoint routed[55]: IP_DROP_MEMBERSHIP ALLHOSTS: Can't assign requested
address
ifconfig de0 205.180.26.179 netmask 255.255.255.248
# Aug 4 17:56:00 farpoint routed[55]: ignore RTM_ADD without gateway
Aug 4 17:56:00 farpoint routed[55]: ignore RTM_ADD without gateway
Aug 4 17:56:00 farpoint routed[55]: IP_ADD_MEMBERSHIP ALLHOSTS: Address already in use
Aug 4 17:56:00 farpoint routed[55]: IP_ADD_MEMBERSHIP ALLHOSTS: Address already in use
Aug 4 17:56:00 farpoint routed[55]: setsockopt(IP_ADD_MEMBERSHIP RIP): Address already in use
Aug 4 17:56:00 farpoint routed[55]: setsockopt(IP_ADD_MEMBERSHIP RIP): Address already in use
Aug 4 17:56:00 farpoint routed[55]: write(rt_sock) RTM_ADD 205.180.26.176/29 -->
205.180.26.179: File exists
Aug 4 17:56:00 farpoint routed[55]: write(rt_sock) RTM_ADD 205.180.26.176/29 -->
205.180.26.179: File exists
Aug 4 17:56:00 farpoint routed[55]: sendto(de0, 224.0.0.2): No route to host
Aug 4 17:56:00 farpoint routed[55]: sendto(de0, 224.0.0.2): No route to host
# netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 205.180.26.177 UGc 0 0 de0
127.0.0.1 127.0.0.1 UH 0 0 lo0
205.180.26.176/29 link#1 UC 0 0
205.180.26.177 link#1 UHLW 1 0
# ifconfig -a
de0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 205.180.26.179 netmask 0xfffffff8 broadcast 205.180.26.183
ether 00:00:c0:bc:37:bf
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
tun0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
#
#!/bin/sh
#
# This is rc.conf - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
# All arguments must be in double or single quotes.
#
# $Id: rc.conf,v 1.12 1997/05/21 00:23:54 jkh Exp $
##############################################################
### Important initial Boot-time options #####################
##############################################################
swapfile="NO" # Set to name of swapfile if aux swapfile desired.
apm_enable="NO" # Set to YES if you want APM enabled.
pccard_enable="NO" # Set to YES if you want to configure PCCARD devices.
pccard_mem="DEFAULT" # If pccard_enable=YES, this is card memory address.
pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO).
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.
##############################################################
### Network configuration sub-section ######################
##############################################################
### Basic network options: ###
hostname="farpoint.pactel.com" # Set this!
nisdomainname="NO" # Set to NIS domain if using NIS (or NO).
firewall="NO" # Set to firewall type or NO for none.
tcp_extensions="YES" # Allow RFC1323 & RFC1544 extensions (or NO).
network_interfaces="de0 lo0" # List of network interfaces (lo0 is loopback).
ifconfig_de0="inet 205.80.26.179 netmask 255.255.255.248"
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
### Network daemon (miscellaneous) & NFS options: ###
syslogd_enable="YES" # Run syslog daemon (or NO).
syslogd_flags="" # Flags to syslogd (if enabled).
inetd_flags="" # Optional flags to inetd (always enabled).
named_enable="NO" # Run named, the DNS server (or NO).
named_flags="" # Flags to named (if enabled).
kerberos_server_enable="NO" # Run a kerberos master server (or NO).
rwhod_enable="NO" # Run the rwho daemon (or NO).
amd_enable="NO" # Run amd service with $amd_flags (or NO).
amd_flags="-a /net -c 1800 -k i386 -d my.domain -l syslog /host /etc/amd.map"
nfs_client_enable="NO" # This host is an NFS client (or NO).
nfs_client_flags="-n 4" # Flags to nfsiod (if enabled).
nfs_server_enable="NO" # This host is an NFS server (or NO).
nfs_server_flags="-u -t 4" # Flags to nfsd (if enabled).
weak_mountd_authentication="NO" # Running PCNFSD / other non-root nfsd (or NO).
nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).
rpc_lockd_enable="NO" # Run NFS rpc.lockd (*broken!*) if nfs_server.
rpc_statd_enable="YES" # Run NFS rpc.statd if nfs_server (or NO).
portmap_enable="YES" # Run the portmapper service (or NO).
portmap_flags="" # Flags to portmap (if enabled).
xtend_enable="NO" # Run the X-10 power controller daemon.
xtend_flags="" # Flags to xtend (if enabled).
### Network Time Services options: ###
timed_enabled="NO" # Run the time daemon (or NO).
timed_flags="" # Flags to timed (if enabled).
ntpdate_enable="NO" # Run the ntpdate to sync time (or NO).
ntpdate_flags="" # Flags to ntpdate (if enabled).
xntpd_enable="NO" # Run xntpd Network Time Protocol (or NO).
xntpd_flags="" # Flags to xntpd (if enabled).
tickadj_enable="NO" # Run tickadj (or NO).
tickadj_flags="-Aq" # Flags to tickadj (if enabled).
# Network Information Services (NIS) options: ###
nis_client_enable="NO" # We're an NIS client (or NO)
nis_client_flags="" # Flags to ypbind (if enabled).
nis_ypset_enable="NO" # Run ypset at boot time (or NO).
nis_ypset_flags="" # Flags to ypset (if enabled).
nis_server_enable="NO" # We're an NIS server (or NO)
nis_server_flags="" # Flags to ypserv (if enabled).
nis_ypxfrd_enable="NO" # Run rpc.ypxfrd at boot time (or NO).
nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled).
nis_yppasswdd_enable="NO" # Run rpc.yppasswdd at boot time (or NO).
nis_yppasswdd_flags="" # Flags to rpc.yppasswdd (if enabled).
### Network routing options: ###
defaultrouter="205.180.26.177" # Set to default gateway (or NO).
static_routes="" # Set to static route list (or leave empty).
gateway_enable="NO" # Set to YES if this host will be a gateway.
router_enable="YES" # Set to YES to enable a routing daemon.
router="routed" # Name of routing daemon to use if enabled.
router_flags="-q" # Flags for routing daemon.
mrouted_enable="NO" # Do multicast routing (see /etc/mrouted.conf)
ipxgateway_enable="NO" # Set to YES to enable IPX routing.
ipxrouted_enable="NO" # Set to YES to run the IPX routing daemon.
ipxrouted_flags="" # Flags for IPX routing daemon.
arpproxy_all="" # replaces obsolete kernel option ARP_PROXY_ALL
##############################################################
### System console options #################################
##############################################################
keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO).
keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).
keybell="NO" # bell to duration.pitch or normal or visual (or NO).
keychange="NO" # function keys default values (or NO).
cursor="NO" # cursor type {normal|blink|destructive} (or NO).
scrnmap="NO" # screen map in /usr/share/syscons/scrnmaps/* (or NO).
font8x16="NO" # font 8x16 from /usr/share/syscons/fonts/* (or NO).
font8x14="NO" # font 8x14 from /usr/share/syscons/fonts/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/syscons/fonts/* (or NO).
blanktime="NO" # blank time (in seconds) or "NO" to turn it off.
saver="NO" # screen saver desired: blank/green/snake/star/NO.
moused_type="NO" # See man page for rc.conf(8) for available settings.
moused_port="/dev/cuaa0" # Set to your mouse port (required if mousetype set)
moused_flags="" # Any additional flags to moused.
##############################################################
### Miscellaneous administrative options ###################
##############################################################
lpd_enable="YES" # Run the line printer daemon
lpd_flags="" # Flags to lpd (if enabled).
sendmail_enable="YES" # Run the sendmail daemon (or NO).
sendmail_flags="-bd -q30m" # -bd is pretty mandatory
savecore_enable="NO" # Save kernel crashdumps for debugging (or NO).
dumpdev="NO" # Device name to crashdump to (if enabled).
check_quotas="NO" # Check quotas (or NO).
accounting_enable="NO" # Turn on process accounting (or NO).
ibcs2_enable="NO" # Ibcs2 (SCO) emulation loaded at startup (or NO).
linux_enable="NO" # Linux emulation loaded at startup (or NO).
rand_irqs="NO" # Stir the entropy pool (or NO).
% ls -l /etc/rc*
-rw-r--r-- 1 root wheel 6909 May 22 00:31 /etc/rc
-rw-r--r-- 1 root wheel 6627 Aug 3 12:33 /etc/rc.conf
-rw-r--r-- 1 root wheel 6626 Jul 27 04:07 /etc/rc.conf.previous
-rw-r--r-- 1 root wheel 4926 May 22 00:31 /etc/rc.firewall
-rw-r--r-- 1 root wheel 2630 May 22 00:31 /etc/rc.i386
-rw-r--r-- 1 root wheel 440 May 22 00:31 /etc/rc.local
-rw-r--r-- 1 root wheel 6157 May 22 00:31 /etc/rc.network
-rw-r--r-- 1 root wheel 317 May 22 00:31 /etc/rc.pccard
-rw-r--r-- 1 root wheel 3367 May 22 00:31 /etc/rc.serial
>Fix:
only the workaround shown above:
ifconfig de0 delete
ifconfig de0 205.180.26.179 netmask 255.255.255.248
Then the interface is reachable.
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708050118.SAA10449>
