Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on Ultra 60
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
maketo
n00b
n00b


Joined: 19 Apr 2005
Posts: 3
Location: New York

PostPosted: Tue Apr 19, 2005 2:12 am    Post subject: Gentoo on Ultra 60 Reply with quote

Hi all,

I am able to boot cdrom and this is what I get for a network card:

eth0: HAPPY MEAL (PCI/CheerIO) 10/100BaseT Ethernet 08:00:20:aa:d2:66
eth0: Link is up using internal transceiver at 100Mb/s, Full Duplex.

It all looks OK, however, I am unable to obtain any info via dhcp. Manually setting up ifconfig and route also fails.

I cannot ping my router either. For all practical purposes the network adapter appears like it is dead.

This is what I get after net-setup eth0 (using dhcp):

eth0 Link encap:Ethernet HWaddr 08:00:20:AA:D2:66
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:495 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30264 (29.5 Kb) TX bytes:5310 (5.1 Kb)
Interrupt:32 Base address:0xb000

Below line just hangs until timeout:

livecd root # /etc/init.d/net.eth0 start
* Bringing eth0 up via DHCP...

The following line:

livecd root # ifconfig eth0 192.168.2.4 netmask 255.255.255.0 up

produces:

livecd root # ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:20:AA:D2:66
inet addr:192.168.2.4 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:495 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30264 (29.5 Kb) TX bytes:8260 (8.0 Kb)
Interrupt:32 Base address:0xb000

If I do a "ping 192.168.2.4" (which is a Windows XP laptop), I get this on the laptop itself:

Ognen@geezer ~
$ arp -a

Interface: 192.168.2.2 --- 0x10003
Internet Address Physical Address Type
192.168.2.1 00-11-50-31-fd-d2 dynamic
192.168.2.4 08-00-20-aa-d2-66 dynamic

So, clearly something is travelling over the wire since the MAC address of the Sun box is picked up.

Any clues?

Thanks,
Ognen
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Tue Apr 19, 2005 12:29 pm    Post subject: Reply with quote

Please review your /etc/conf.d/net network configuration file, and read both it and /etc/init.d/net.eth0 (assuming either (1) you have just one interface or (2) you want eth0 to be the one assigned an address by dhcp). You must configure eth0 to get its information using dhcp, then everything should be OK.

If you still have problems, indicate so, and I can show you a configuration which "works for me." But I can't do it now because I am not on the system which uses it. For reference, the system is an Ultra2 with two cards --- eth0, eth1 --- and it uses dhcp to configure eth1. So if I give you anything, you'll have to sort out the eth0, eth1 stuff and adapt it to your own system.

Main thing, though, is to set up the configuration file to use dhcp and that's about it. Of course, someone on your network has to be a dhcp server, and your hang indicates that might not be the case. :wink:

Hope in all this rambling something is useful.
Regards,
Back to top
View user's profile Send private message
maketo
n00b
n00b


Joined: 19 Apr 2005
Posts: 3
Location: New York

PostPosted: Tue Apr 19, 2005 2:08 pm    Post subject: Reply with quote

Ferris wrote:
Please review your /etc/conf.d/net network configuration file, and read both it and /etc/init.d/net.eth0 (assuming either (1) you have just one interface or (2) you want eth0 to be the one assigned an address by dhcp). You must configure eth0 to get its information using dhcp, then everything should be OK.

If you still have problems, indicate so, and I can show you a configuration which "works for me." But I can't do it now because I am not on the system which uses it. For reference, the system is an Ultra2 with two cards --- eth0, eth1 --- and it uses dhcp to configure eth1. So if I give you anything, you'll have to sort out the eth0, eth1 stuff and adapt it to your own system.

Main thing, though, is to set up the configuration file to use dhcp and that's about it. Of course, someone on your network has to be a dhcp server, and your hang indicates that might not be the case. :wink:

Hope in all this rambling something is useful.
Regards,


Hi,

I will try looking at these options BUT dhcpcd eth0 hangs also. This would pretty much indicate that it cannot get to the dhcp server. The server is a Belkin router - I can't ping it or anything.But what's interesting is that the MAC address of the Sun box (the only ethernet adapter) shows up in arp on the Windows laptop which is attached to the same router.

Ognen
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Tue Apr 19, 2005 11:13 pm    Post subject: Reply with quote

OK, for reference: Here's what's running on my system (which grabs dhcp information from my ISP):
Code:

root      1221     1  0 Jan06 ?        00:00:09 /sbin/dhcpcd -d -Y -N eth1

It is started at boot time from (for me) /etc/runlevels/default/net.eth1 (which, of course, is really /etc/init.d/net.eth1). net.eth1 looks like net.eth0, except for the configure file. I am using eth1 because this system has two ethernet cards, and I am using the second one for global access, and the first (eth0) for local access, and ipchains to get between them.

Here is the corresponding /etc/conf.d/net, which is used to configure both cards; as you see, it's pretty simple.
Code:

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.4 2002/05/12 21:48:18 azarah
Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.8.15 broadcast 192.168.8.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth1="dhcp"
dhcpcd_eth1="-d -Y -N"
#iface_eth0="dhcp"
#dhcpcd_eth0="-d -Y -N"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
alias_eth0="192.168.8.1"
alias_eth1="10.0.0.1"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.
#
broadcast_eth0="192.168.8.255"
netmask_eth0="255.255.255.0"
broadcast_eth1="192.168.8.255"
netmask_eth1="255.255.255.0"


So, why the aliases? Originally, the network was on a dial-up modem through a little box with IP address 192.168.8.1, and everyone thinks that's the gateway and 192.168.8.15 is the system you are getting this note from.
the 10.0.0.1 is because that is the IP address of my DSL modem, and I can get into it for status. That alias is on eth1 because the modem is on eth1. The LAN is on eth0. Whether or not any of that is relevant to you pretty much depends on the Belkin box, I would think; if it's a DHCP server, and you configure your system to get an address using dhcp, that should be enough (I don't recall that anything special is required in the kernel configuration. But I set this up over a year ago, so I might be wrong.)

Sorry I don't have a definite answer.
Regards,
Back to top
View user's profile Send private message
maketo
n00b
n00b


Joined: 19 Apr 2005
Posts: 3
Location: New York

PostPosted: Wed Apr 20, 2005 1:22 am    Post subject: SOLVED Reply with quote

Hi,

sorry for the waste of time. My router had MAC filtering enabled. After I added Sun's mac address - it all worked.

Ognen
Back to top
View user's profile Send private message
Ferris
Retired Dev
Retired Dev


Joined: 13 Jan 2003
Posts: 426
Location: N. Virginia (USA)

PostPosted: Wed Apr 20, 2005 11:36 am    Post subject: Reply with quote

8) We'll hope that the dialog helped you find it. :wink:
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