Hi,
I experienced a very strange problem today where my gem0 interface on
sparc64 4.6 release stopped passing traffic or doing anything at all. It
was very strange. ifconfig looked normal, there were no errors logged on
the console, daemon, messages etc. I bounced the interface with ifconfig
and it started passing traffic again.
Is there any way for me to pull more detailed stats out of the interface
so I can see what's going on? For example the device registers stats?
Here is my console session from fixing the problem
OpenBSD/sparc64 (netra.userid.org) (console)
login: root
Password:
Last login: Mon Dec 28 20:20:19 on ttyp1 from pierre.userid.org
OpenBSD 4.6 (GENERIC) #43: Thu Jul 9 21:34:21 MDT 2009
Welcome to OpenBSD: The proactively secure Unix-like operating system.
<root.wh...@netra> [~] # ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33152
priority: 0
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
gem0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:10:8d:a5
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.3.1 netmask 0xffffff00 broadcast 192.168.3.255
inet6 fe80::203:baff:fe10:8da5%gem0 prefixlen 64 scopeid 0x1
inet6 2607:f0b0:1:3800::1 prefixlen 64
inet 192.168.3.240 netmask 0xffffff00 broadcast 192.168.3.255
gem1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:10:8d:a6
priority: 0
media: Ethernet autoselect (10baseT half-duplex)
status: active
inet6 fe80::203:baff:fe10:8da6%gem1 prefixlen 64 scopeid 0x2
enc0: flags=0<> mtu 1536
priority: 0
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
priority: 0
dev: gem1 state: session
sid: 0x10fb PADI retries: 0 PADR retries: 0 time: 3d 12:00:46
sppp: phase network authproto pap authname "pl...@storm.ca"
groups: pppoe egress
inet6 fe80::203:baff:fe10:8da5%pppoe0 -> prefixlen 64 scopeid 0x5
inet 216.106.102.33 --> 209.87.255.1 netmask 0xffffffff
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33152
priority: 0
groups: pflog
<root.wh...@netra> [~] # ping 192.168.3.100
PING 192.168.3.100 (192.168.3.100): 56 data bytes
ping: sendto: Host is down
ping: wrote 192.168.3.100 64 chars, ret=-1
ping: sendto: Host is down
ping: wrote 192.168.3.100 64 chars, ret=-1
--- 192.168.3.100 ping statistics ---
8 packets transmitted, 0 packets received, 100.0% packet loss
<root.wh...@netra> [~] # ifconfig gem0
gem0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:10:8d:a5
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.3.1 netmask 0xffffff00 broadcast 192.168.3.255
inet6 fe80::203:baff:fe10:8da5%gem0 prefixlen 64 scopeid 0x1
inet6 2607:f0b0:1:3800::1 prefixlen 64
inet 192.168.3.240 netmask 0xffffff00 broadcast 192.168.3.255
<root.wh...@netra> [~] # tcpdump -i gem0
tcpdump: listening on gem0, link-type EN10MB
10:13:53.357013 arp who-has pierre.userid.org tell netra.userid.org
10:13:54.348770 arp who-has pierre.userid.org tell netra.userid.org
10:13:55.358968 arp who-has pierre.userid.org tell netra.userid.org
10:13:56.401024 arp who-has pierre.userid.org tell netra.userid.org
10:13:57.400049 arp who-has pierre.userid.org tell netra.userid.org
10:14:04.378326 arp who-has pandora.userid.org tell netra.userid.org
^C
28 packets received by filter
0 packets dropped by kernel
<root.wh...@netra> [~] # ifconfig gem0 down
<root.wh...@netra> [~] # ifconfig gem0 up
<root.wh...@netra> [~] # ifconfig gem0
gem0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:03:ba:10:8d:a5
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.3.1 netmask 0xffffff00 broadcast 192.168.3.255
inet6 fe80::203:baff:fe10:8da5%gem0 prefixlen 64 scopeid 0x1
inet6 2607:f0b0:1:3800::1 prefixlen 64
inet 192.168.3.240 netmask 0xffffff00 broadcast 192.168.3.255
<root.wh...@netra> [~] #
After that, everything was working fine. Any thoughts?
-Pierre
OpenBSD 4.6 (GENERIC) #43: Thu Jul 9 21:34:21 MDT 2009
dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 2147483648 (2048MB)
avail mem = 2065530880 (1969MB)
mainbus0 at root: Netra T1 200 (UltraSPARC-IIe 500MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 1.4) @ 500 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K
external (64 b/l)
psycho0 at mainbus0: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba PCI-PCI" rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 12 function 0 "Sun RIO EBus" rev 0x01
"flashprom" at ebus0 addr 0-fffff not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"SUNW,lomh" at ebus0 addr 200000-200003 ivec 0x2a not configured
alipm0 at pci1 dev 3 function 0 "Acer Labs M7101 Power" rev 0x00: 74KHz
clock
iic0 at alipm0
"max1617" at alipm0 addr 0x18 skipped due to alipm0 bugs
spdmem0 at iic0 addr 0x54: 512MB SDRAM registered ECC PC133CL2
spdmem1 at iic0 addr 0x55: 512MB SDRAM registered ECC PC133CL2
spdmem2 at iic0 addr 0x56: 512MB SDRAM registered ECC PC133CL2
spdmem3 at iic0 addr 0x57: 512MB SDRAM registered ECC PC133CL2
ebus1 at pci1 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
power0 at ebus1 addr 2000-2007 ivec 0x25
com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com0: console
com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
gem0 at pci1 dev 12 function 1 "Sun ERI Ether" rev 0x01: ivec 0x7c6,
address 00:03:ba:10:8d:a5
ukphy0 at gem0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI
0x0010dd, model 0x0002
ohci0 at pci1 dev 12 function 3 "Sun USB" rev 0x01: ivec 0x7e4, version
1.0, legacy support
pciide0 at pci1 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc3:
DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7cc for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
gem1 at pci1 dev 5 function 1 "Sun ERI Ether" rev 0x01: ivec 0x7dc,
address 00:03:ba:10:8d:a6
ukphy1 at gem1 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI
0x0010dd, model 0x0002
ohci1 at pci1 dev 5 function 3 "Sun USB" rev 0x01: ivec 0x7e6, version
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Sun OHCI root hub" rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 "Sun OHCI root hub" rev 1.00/1.00 addr 1
ppb1 at pci0 dev 1 function 0 "Sun Simba PCI-PCI" rev 0x13
pci2 at ppb1 bus 2
siop0 at pci2 dev 8 function 0 "Symbios Logic 53c896" rev 0x07: ivec
0x7e0, using 8K of on-board RAM
scsibus0 at siop0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST318305LSUN18G, 0340> SCSI3
0/direct fixed
sd0: 17274MB, 512 bytes/sec, 35378533 sec total
siop1 at pci2 dev 8 function 1 "Symbios Logic 53c896" rev 0x07: ivec
0x7e0, using 8K of on-board RAM
scsibus1 at siop1: 16 targets, initiator 7
softraid0 at root
siop0: target 0 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
bootpath: /p...@1f,0/p...@1,0/s...@8,0/d...@0,0
root on sd0a swap on sd0b dump on sd0b
<root.wh...@netra> [~] #