Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Networking not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
Sloefke
n00b
n00b


Joined: 01 Dec 2003
Posts: 68
Location: Belgium

PostPosted: Mon Feb 26, 2007 12:13 pm    Post subject: [SOLVED] Networking not working Reply with quote

Just installed Gentoo on a Sparc SunFire 280R, latest sparc-sources kernel (2.4.34-sparc-grsec). When I boot into my new system, my networking is not working.
I have assigned a static IP address to my eth1 interface and added a default route. After the reboot, I can't ping the DHCP server in my network:

Code:

sparc1 ~ # uname -a
Linux sparc1 2.4.34-sparc-grsec #1 SMP Fri Feb 23 16:45:01 CET 2007 sparc64 sun4u GNU/Linux
sparc1 ~ # ifconfig
eth1      Link encap:Ethernet  HWaddr 00:03:BA:16:CF:C2 
          inet addr:10.7.195.200  Bcast:10.255.255.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:32

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:99 errors:0 dropped:0 overruns:0 frame:0
          TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10964 (10.7 Kb)  TX bytes:10964 (10.7 Kb)

sparc1 ~ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.7.192.0      *               255.255.252.0   U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.7.192.2      0.0.0.0         UG    0      0        0 eth1
sparc1 ~ # ping 10.7.192.1
PING 10.7.192.1 (10.7.192.1) 56(84) bytes of data.
From 10.7.195.200 icmp_seq=1 Destination Host Unreachable
From 10.7.195.200 icmp_seq=2 Destination Host Unreachable
From 10.7.195.200 icmp_seq=3 Destination Host Unreachable

--- 10.7.192.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3027ms
, pipe 3


The network is OK, because the LiveCD receives an IP address from the DHCP server.
Using DHCP with the new install also fails:

Code:

sparc1 ~ # /etc/init.d/net.eth1 start
 * Starting eth1
 *   Bringing up eth1
 *     dhcp
Error, timed out waiting for a valid DHCP server response
                                               [ !! ]
                                                                          [ !! ]


This is the dmesg output:

Code:

sparc1 ~ # dmesg
PROMLIB: Sun IEEE Boot Prom 4.10.11 2003/09/25 11:53
Linux version 2.4.34-sparc-grsec (root@livecd) (gcc version 3.4.6 (Gentoo Linux 3.4.6)) #1 SMP Fri Feb 23 16:45:01 CET 2007
ARCH: SUN4U
Ethernet address: 00:03:ba:16:cf:c2
On node 0 totalpages: 195879
zone(0): 196478 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Found CPU 0 (node=f00625d0,mid=0)
Found CPU 1 (node=f0063000,mid=1)
Found 2 CPU prom device tree node(s).
Kernel command line: root=/dev/sda1
Calibrating delay loop... 499.71 BogoMIPS
Memory: 1548536k available (2760k kernel code, 688k data, 184k init) [fffff80000000000,000000005fefc000]
Dentry cache hash table entries: 262144 (order: 9, 4194304 bytes)
Inode cache hash table entries: 131072 (order: 8, 2097152 bytes)
Mount cache hash table entries: 512 (order: 0, 8192 bytes)
Buffer cache hash table entries: 131072 (order: 7, 1048576 bytes)
Page-cache hash table entries: 262144 (order: 8, 2097152 bytes)
POSIX conformance testing by UNIFIX
Entering UltraSMPenguin Mode...
Calibrating delay loop... 499.71 BogoMIPS
Total of 2 processors activated (999.42 BogoMIPS).
CPU 1: synchronized TICK with master CPU (last diff -1 cycles,maxerr 5 cycles)
Waiting on wait_init_idle (map = 0x2)
All processors have done init_idle
PCI: Probing for controllers.
SCHIZO0 PBMB: ver[7:0], portid 8, cregs[40004400000] pregs[40004700000]
SCHIZO0 PBMB: PCI CFG[7ffee000000] IO[7ffef000000] MEM[7fe00000000]
SCHIZO0 PBMA: ver[7:0], portid 8, cregs[40004400000] pregs[40004600000]
SCHIZO0 PBMA: PCI CFG[7ffec000000] IO[7ffed000000] MEM[7fd00000000]
PCI-IRQ: Routing bus[ 0] slot[ 3] map[0] to INO[15]
PCI-IRQ: Routing bus[ 0] slot[ 5] map[0] to INO[1d]
PCI-IRQ: Routing bus[ 0] slot[ 5] map[0] to INO[1f]
PCI-IRQ: Routing bus[ 0] slot[ 6] map[0] to INO[18]
PCI-IRQ: Routing bus[ 0] slot[ 6] map[0] to INO[19]
PCI0(PBMB): Bus running at 33MHz
PCI-IRQ: Routing bus[ 1] slot[ 4] map[0] to INO[04]
PCI0(PBMA): Bus running at 66MHz
ebus0: [flashprom] [i2c -> (nvram) (idprom) (dimm-fru) (dimm-fru) (dimm-fru) (dimm-fru) (dimm-fru) (dimm-fru) (dimm-fru) (dimm-fru)] [bbc] [power] [i2c -> (cpu-fru) (temperature) (cpu-fru) (temperature) (fan-control) (motherboard-fru) (ioexp) (ioexp) (ioexp) (fcal-backplane) (remote-system-console) (power-distribution-board) (power-supply) (power-supply) (rscrtc)] [beep] [rtc] [gpio] [pmc] [parallel] [rsc-control] [rsc-console] [serial]
SAB82532 serial driver version 1.65
ttyS00 at 0x7fe7e400000 (irq = 12,222) is a SAB82532 V3.2
ttyS01 at 0x7fe7e400040 (irq = 12,222) is a SAB82532 V3.2
Console: ttyS0 (SAB82532)
power: Control reg at 000007fe7e30002e ... not using powerd.
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
chmc0: US3 memory controller at 0000040000400000 [ACTIVE]
chmc1: US3 memory controller at 0000040000c00000 [ACTIVE]
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
NTFS driver v1.1.22 [Flags: R/O]
i2c-core.o: i2c core module version 2.6.1 (20010830)
i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
i2c-core.o: driver i2c-dev dummy driver registered.
i2c-algo-bit.o: i2c bit algorithm module
i2c-proc.o version 2.6.1 (20010830)
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10f
sunhme.c:v2.01 26/Mar/2002 David S. Miller (davem@redhat.com)
eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 00:03:ba:16:cf:c2
sungem.c:v0.97 3/20/02 David S. Miller (davem@redhat.com)
eth%d: MII PHY ID: 18074c0 Lucent
eth1: Sun GEM (PCI) 10/100/1000BaseT Ethernet 00:03:ba:16:cf:c2
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SCSI subsystem driver Revision: 1.00
qlogicfc0 : Could not read from NVRAM
qlogicfc0 : Loop Reinitialized
qlogicfc0 : Link is Up
scsi0 : QLogic ISP2200 SCSI on PCI bus 01 device 20 irq 8096512 base 0x7ffed000300
qlogicfc0 : Port Database
wwn: 200000e08b000000  scsi_id: 0  loop_id: 1
wwn: 21000004cf9f5561  scsi_id: 1  loop_id: 0
  Vendor: SEAGATE   Model: ST336605FSUN36G   Rev: 0438
  Type:   Direct-Access                      ANSI SCSI revision: 03
sym.0.6.0: setting PCI_COMMAND_INVALIDATE.
sym.0.6.1: setting PCI_COMMAND_INVALIDATE.
sym0: <875> rev 0x37 on pci bus 0 device 6 function 0 irq 4,218
sym0: No NVRAM, ID 7, Fast-20, SE, parity checking
sym0: SCSI BUS has been reset.
sym1: <875> rev 0x37 on pci bus 0 device 6 function 1 irq 4,219
sym1: No NVRAM, ID 7, Fast-20, SE, parity checking
sym1: SCSI BUS has been reset.
scsi1 : sym-2.1.17a
scsi2 : sym-2.1.17a
  Vendor: TOSHIBA   Model: DVD-ROM SD-M1401  Rev: 1009
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
SCSI device sda: 71132959 512-byte hdwr sectors (36420 MB)
Partition check:
 /dev/scsi/host0/bus0/target1/lun0: p1 p2 p3
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 6, lun 0
sym0:6: FAST-20 SCSI 20.0 MB/s ST (50.0 ns, offset 16)
sr0: scsi3-mmc drive: 40x/40x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
host/usb-uhci.c: $Revision: 1.275 $ time 16:49:13 Feb 23 2007
host/usb-uhci.c: High bandwidth mode enabled
host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
host/usb-ohci.c: USB OHCI at membase 0x7fe01000000, IRQ 9,21f
host/usb-ohci.c: usb-00:05.3, PCI device 108e:1103
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
Linux video capture interface: v1.00
mice: PS/2 mouse device common for all mice
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 16384 buckets, 256Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Mounted devfs on /dev
EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
usbdevfs: remount parameter error
Adding Swap: 999576k swap-space (priority -1)
eth1: MII PHY ID: 18074c0 Lucent
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt
eth1: switching to forced 100bt
eth1: switching to forced 10bt


Has this something to do with the last messages in dmesg?

-mod-: my kernel configuration can be found here: http://www.sloefke.eu/kernel.txt
I read somewhere about problems with switching of Happy Meal and GEM interfaces, but didn't find much explanation about it. Known problem?


Last edited by Sloefke on Wed Feb 28, 2007 1:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sleipnir
Guru
Guru


Joined: 20 Sep 2005
Posts: 372
Location: Germany

PostPosted: Tue Feb 27, 2007 8:42 am    Post subject: Reply with quote

Are you really sure 255.255.252.0 is the correct netmask? Or should it be 255.255.255.0?
If you are unsure try to boot from the LiveCD (which is working) and check the settings for the netmask there.
_________________
A)bort, R)etry, I)nfluence with large hammer.
Back to top
View user's profile Send private message
Sloefke
n00b
n00b


Joined: 01 Dec 2003
Posts: 68
Location: Belgium

PostPosted: Tue Feb 27, 2007 10:25 am    Post subject: Reply with quote

The netmask is absolutely 255.255.252.0 :)
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Tue Feb 27, 2007 8:50 pm    Post subject: Reply with quote

Can you confirm that the interface Linux thinks is eth1 has an established link-layer connection? Tools like mii-tool or ethtool can provide you with this information. If I'm remembering correctly, the flip-flop back and forth for eth1 you are seeing in dmesg happens when that interface doesn't have a link established to the switch.
Back to top
View user's profile Send private message
Sloefke
n00b
n00b


Joined: 01 Dec 2003
Posts: 68
Location: Belgium

PostPosted: Wed Feb 28, 2007 1:01 pm    Post subject: Reply with quote

Ok, it looks like something is off:

Code:

sparc1 ~ # mii-tool
SIOCGMIIPHY on 'eth0' failed: Operation not supported
eth1: 100 Mbit, half duplex, no link
sparc1 ~ # ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  Not reported
        Advertised auto-negotiation: No
        Speed: 10Mb/s
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
sparc1 ~ # ethtool1
-bash: ethtool1: command not found
sparc1 ~ # ethtool eth1
Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  Not reported
        Advertised auto-negotiation: No
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: off
        Current message level: 0x00000007 (7)
        Link detected: no


-mod-: ok, problem solved. I put the configuration of eth1 on eth0 and it works. Don't know why it has to be switched, the LiveCD always uses eth1.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum