Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Nov 2002 15:40:27 +0000
From:      Olafur Osvaldsson <oli@isnic.is>
To:        Thomas Moestl <tmoestl@gmx.net>
Cc:        freebsd-sparc@FreeBSD.ORG
Subject:   Re: network errors
Message-ID:  <20021119154027.GQ19604@isnic.is>
In-Reply-To: <20021119135732.GA308@crow.dom2ip.de>
References:  <20021119131950.GM19604@isnic.is> <20021119135732.GA308@crow.dom2ip.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Thomas,

On Tue, 19 Nov 2002, Thomas Moestl wrote:

> Can you please provide the ifconfig output in both cases, the exact
> rc.conf line you were using and the relevant dmesg excerpts for hme0?

=== System info ===

Netra t1 (UltraSPARC-IIi 440MHz), No Keyboard
OpenBoot 3.10.24 ME, 512 MB memory installed, Serial #14270042.
Ethernet address 8:0:20:d9:be:5a, Host ID: 80d9be5a.

================
Working network:
================

dmesg:
...
hme0: <Sun HME 10/100 Ethernet> mem 0xe0000000-0xe0007fff irq 33 at device 1.1 on pci2
hme0: Ethernet address: 08:00:20:d9:be:5a
miibus0: <MII bus> on hme0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1: <Generic IEEE 802.3u media interface> on miibus0
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
...
Doing initial network setup: hostname.
hme0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 130.208.16.22 netmask 0xffffff00 broadcast 130.208.16.255
        ether 08:00:20:d9:be:5a
        media: Ethernet autoselect (100baseTX)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
...


[root@fundinn oli]# grep ifconfig /etc/rc.conf 
ifconfig_hme0="inet 130.208.16.22  netmask 255.255.255.0"


[root@fundinn oli]# ifconfig -a
hme0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 130.208.16.22 netmask 0xffffff00 broadcast 130.208.16.255
        ether 08:00:20:d9:be:5a
        media: Ethernet autoselect (100baseTX)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 


[root@fundinn /root]# ping -qc2 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 48 data bytes

--- 127.0.0.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.152/0.246/0.340/0.094 ms


[root@fundinn /root]# ping -qc2 130.208.16.22
PING 130.208.16.22 (130.208.16.22): 48 data bytes

--- 130.208.16.22 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.150/0.284/0.419/0.135 ms


[root@fundinn /root]# ping -qc2 130.208.16.1 
PING 130.208.16.1 (130.208.16.1): 48 data bytes

--- 130.208.16.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.740/0.805/0.871/0.066 ms


====================
NON-Working network:
====================

dmesg:
...
hme0: <Sun HME 10/100 Ethernet> mem 0xe0000000-0xe0007fff irq 33 at device 1.1 on pci2
hme0: Ethernet address: 08:00:20:d9:be:5a
miibus0: <MII bus> on hme0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ukphy1: <Generic IEEE 802.3u media interface> on miibus0
ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
...
Doing initial network setup: hostname.
        atalk 33488.16 range 33488-33488 phase 2
hme0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 130.208.16.22 netmask 0xffffff00 broadcast 130.208.16.255
        ether 08:00:20:d9:be:5a
        media: Ethernet 100baseTX <full-duplex> (100baseTX)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
...


[root@fundinn /root]# grep ifconfig /etc/rc.conf
ifconfig_hme0="inet 130.208.16.22  netmask 255.255.255.0 media 100baseTX mediaopt full-duplex"


[root@fundinn /root]# ifconfig -a
hme0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 130.208.16.22 netmask 0xffffff00 broadcast 130.208.16.255
        ether 08:00:20:d9:be:5a
        media: Ethernet 100baseTX <full-duplex> (100baseTX)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 


[root@fundinn /root]# ping -qc2 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 48 data bytes

--- 127.0.0.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.151/0.238/0.326/0.088 ms


[root@fundinn /root]# ping -qc2 130.208.16.22
PING 130.208.16.22 (130.208.16.22): 48 data bytes

--- 130.208.16.22 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.149/0.256/0.362/0.106 ms


[root@fundinn /root]# ping -qc2 130.208.16.1 
PING 130.208.16.1 (130.208.16.1): 48 data bytes

--- 130.208.16.1 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
[root@fundinn /root]# 


============================================


No changes were made between reboot except in rc.conf ifconfig_hme0 line.


As noted before I can then change the interface to be fixed 100-FD after
logging in (after a successful boot) and doing:


[root@fundinn /root]# ifconfig hme0 media 100baseTX mediaopt full-duplex
        atalk 0.0 range 0-0 phase 2

Then the interface is fixed to this speed and duplex:

[root@fundinn /root]# ifconfig -a
hme0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 130.208.16.22 netmask 0xffffff00 broadcast 130.208.16.255
        ether 08:00:20:d9:be:5a
        media: Ethernet 100baseTX <full-duplex>
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 


Now the interface is fully functional and not in autosense mode.

Changing the interface in the same manner to AUTO after a unsuccessful boot
does not give the same results, the ifconfig output changes but the interface
does not work.

/Oli

-- 
Olafur Osvaldsson
Systems Administrator
Internet a Islandi hf.
Tel:   +354 525-5291
Email: oli@isnic.is

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-sparc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021119154027.GQ19604>