Subject: problem with sip0 (SiS 900 10/100 Ethernet, rev 0x90)
To: None <>
From: Carl Brewer <>
List: netbsd-users
Date: 06/01/2004 10:51:04

I've just started building a new NetBSD 1.6.2 server, with an
SiS chipset all in one MB.  dmesg says :

sip0 at pci0 dev 4 function 0: SiS 900 10/100 Ethernet, rev 0x90
sip0: interrupting at irq 12
sip0: Ethernet address 00:0d:61:91:96:84
rtk0 at pci0 dev 9 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at irq 11
rtk0: Ethernet address 00:02:44:7a:a2:45

I've got a second interface on the box as well, the rtk0 one, which
works fine.

I can get the sip0 interface to ping itself :
cccfw: {14} ifconfig sip0 inet netmask up

         address: 00:0d:61:91:96:84
         media: Ethernet none (none)
         inet netmask 0xffffff00 broadcast
         inet6 fe80::20d:61ff:fe91:9684%sip0 prefixlen 64 scopeid 0x1

cccfw: {17} ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=255 time=0.078 ms
64 bytes from icmp_seq=1 ttl=255 time=0.115 ms

It's not currently connected to a hub, but I had exactly the same
output when it was (with a known good cable, I'm connected to it
via that cable and hub now).  My concern is the media detection,
which seems to not work, and when the interface was connected, it was
very intermittant.

I should be able to set the media type.  I figured (it's at home, I'm at 
work, so I can't
physically touch it at the moment) that maybe the problem was
ethernet mode selection, so I tried to set the media type :

cccfw: {16} ifconfig sip0 media 10baseT
ifconfig: SIOCSIFMEDIA: Invalid argument

I haven't had to set media before on any box (have I been lucky?!)
but searching through man pages I think my argument to media is

Is there a list somewhere (I read through the man pages, but didn't find
anything obvious) of supported media arguments for this driver?
All I found on google was :

which lists

     ifconfig sip0 media 10baseT

as a legal argument, but as above, that doesn't work for me!

cccfw: {18} uname -a
NetBSD cccfw 1.6.2 NetBSD 1.6.2 (ccc) #0: Tue Jun  1 09:18:37 EST 2004 
    carl@cccfw:/usr/src/sys/arch/i386/compile/ccc i386

The kernel's GENERIC, with maxusers bumped up to 128, thus the "ccc"