Re: sparc 5.2-beta bsd.rd doesn't get IP address from DHCP

"Sebastian Reitenbach" <[email protected]>
Newsgroups gmane.os.openbsd.sparc
Message-ID <39ca-4ff4aa80-89-6b8b4580@213084888>
On Wednesday, July 4, 2012 21:42 CEST, Miod Vallat <[email protected]> wrote: 
 
> > I guess the bsd.rd would not have your root disk's /etc/hostname.le0 as root
> > for your bsd.rd is on rd0a.   Does that file on your root disk, sd0a have
> > media specified?  Perhaps you need to issue ifconfig le0 media <????> at
> > bsd.rd?
> 
> It's an install he's doing, why would he have a root disk already?
> 
> This looks more akin to missing code in the media layer, but then I am
> puzzled that regular bsd seems to be working.

The /bsd I tried, and which works is an older 5.1-current, but I also just tried booting the 5.2-beta /bsd, which 
also works. Its only the 5.2-beta bsd.rd which doesn't seem to detect a link on the interface.

I just tried to set an IP manually, and it just worked:
Available network interfaces are: le0.
Which one do you wish to configure? (or 'done') [le0] 
IPv4 address for le0? (or 'dhcp' or 'none') [dhcp] 
Issuing hostname-associated DHCP request for le0.
le0: no link ............. sleeping
Issuing free-roaming DHCP request for le0.
le0: no link ............. sleeping
Available network interfaces are: le0.
Which one do you wish to configure? (or 'done') [le0] 
IPv4 address for le0? (or 'dhcp' or 'none') [dhcp] ^C


# ifconfig le0                                                                 
le0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
        lladdr 08:00:20:89:d9:b5
        media: Ethernet autoselect (10baseT)
        status: unknown
# ifconfig le0 up                                                              
# ifconfig le0                                                                 
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 08:00:20:89:d9:b5
        media: Ethernet autoselect (10baseT)
        status: unknown
# ifconfig le0 10.0.0.189 netmask 255.255.255.0                                
# ping 10.0.0.9
PING 10.0.0.9 (10.0.0.9): 56 data bytes
64 bytes from 10.0.0.9: icmp_seq=0 ttl=255 time=120.901 ms
64 bytes from 10.0.0.9: icmp_seq=1 ttl=255 time=0.712 ms
64 bytes from 10.0.0.9: icmp_seq=2 ttl=255 time=0.655 ms
--- 10.0.0.9 ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.655/40.756/120.901/56.671 ms
# ifconfig -a                                                                  
lo0: flags=8008<LOOPBACK,MULTICAST> mtu 33196
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 08:00:20:89:d9:b5
        media: Ethernet autoselect (10baseT)
        status: unknown
        inet 10.0.0.189 netmask 0xffffff00 broadcast 10.0.0.255
# 

below the ifconfig output from the 5.1-current kernel:
# ifconfig le0                                                                 
le0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 08:00:20:89:d9:b5
        priority: 0
        groups: egress
        media: Ethernet autoselect (10baseT)
        inet6 fe80::a00:20ff:fe89:d9b5%le0 prefixlen 64 scopeid 0x1
        inet 10.0.0.25 netmask 0xffffff00 broadcast 10.0.0.255


Sebastian.

> 
> Miod
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.