Subject: Re: NetBSD and BOOTP
To: john heasley <heas@shrubbery.net>
From: Victor Sudakov <sudakov@sibptus.tomsk.ru>
List: port-sparc64
Date: 06/10/2003 22:53:19
john heasley wrote:
> >
> > When trying to netboot NetBSD 1.6.1 on a sun4u, I see the following:
> >
> > =========================== cut here =============================
> >
> > ok boot net
> > Res
> > LOM event: +0h30m52s host reset
> > etting ...
> >
> > ~
> > Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
> > OpenBoot 4.0, 512 MB memory installed, Serial #51612755.
> > Ethernet address 0:3:ba:13:8c:53, Host ID: 83138c53.
> >
> >
> >
> > Executingilastecommand: boot net
> > Boot device: /pci@1f,0/pci@1,1/network@c,1 File and args:
> > 14e00 >> NetBSD/sparc64 OpenFirmware Boot, Revision
> > >> (autobuild@cs20.apochromatic.org, Mon Apr 7 09:50:28 UTC 2003)
> > net_open: client addr: 172.16.138.114
> > net_open: subnet mask: 255.255.255.128
> > net_open: net gateway: 172.16.138.61
> > net_open: server addr: 172.16.138.61
> > net_open: server path: /pxeroot
> > Using BOOTP protocol: ip address: 172.16.138.114, hostname: Sun2, netmask: 255.255.255.128, gateway: 172.16.138.61
> > root addr=172.16.138.61 path=/pxeroot
> > open /pci@1f,0/pci@1,1/network@c,1/netbsd: Unknown error: code 60
> > : trying netbsd.gz ...
> >
> > =========================== cut here =============================
> >
> > QUESTION: what DHCP option should I pass to ofwboot.net in order to
> > set "root addr" or "server addr" to something different than 172.16.138.61 ?
> >
> > My current DHCP setup on a Cisco box is:
> >
> > p dhcp pool EVERYONE
> > network 172.16.138.0 255.255.255.128
> > default-router 172.16.138.61
> > dns-server 172.16.138.120 172.16.138.125
> > domain-name sibptus.tomsk.ru
> > !
> > ip dhcp pool SUN2
> > host 172.16.138.114 255.255.255.128
> > hardware-address 0003.ba13.8c53
> > client-name Sun2
> > option 17 ascii "/pxeroot"
> > !
> >
> > So you see that "server path" is DHCP option 17 but which option is
> > "server addr" ? It does not seem to be documented in INSTALL.txt.
> > 172.16.138.61 is my router but the NFS server lives on a different
> > address.
>
> I have not tried net-booting sparc64 myself, but the dhcpd.conf manpage
> provides the following example.
>
> subclass "allocation-class-2" 1:08:00:2b:a1:11:31 {
> option root-path "samsara:/var/diskless/alphapc";
> filename "/tftpboot/netbsd.alphapc-diskless";
> }
Yes, option root-path is indeed option 17.
Unfortunately ofwboot.net does not parse the option string as you expect.
Look:
ok boot net
Res
LOM event: +2d+6h56m2s host reset
etting ...
~
Netra T1 200 (UltraSPARC-IIe 500MHz), No Keyboard
OpenBoot 4.0, 512 MB memory installed, Serial #51612755.
Ethernet address 0:3:ba:13:8c:53, Host ID: 83138c53.
Executingilastecommand: boot net
Boot device: /pci@1f,0/pci@1,1/network@c,1 File and args:
14e00 >> NetBSD/sparc64 OpenFirmware Boot, Revision
>> (autobuild@cs20.apochromatic.org, Mon Apr 7 09:50:28 UTC 2003)
net_open: client addr: 172.16.138.114
net_open: subnet mask: 255.255.255.128
net_open: net gateway: 172.16.138.61
net_open: server addr: 172.16.138.61
net_open: server path: 172.16.138.120:/pxeroot
Using BOOTP protocol: ip address: 172.16.138.114, hostname: Sun2, netmask: 255.255.255.128, gateway: 172.16.138.61
root addr=172.16.138.61 path=172.16.138.120:/pxeroot
open /pci@1f,0/pci@1,1/network@c,1/netbsd: Unknown error: code 60
: trying netbsd.gz ...
net_open: client addr: 172.16.138.114
net_open: subnet mask: 255.255.255.128
net_open: net gateway: 172.16.138.61
net_open: server addr: 172.16.138.61
net_open: server path: 172.16.138.120:/pxeroot
Using BOOTP protocol: ip address: 172.16.138.114, hostname: Sun2, netmask: 255.255.255.128, gateway: 172.16.138.61
root addr=172.16.138.61 path=172.16.138.120:/pxeroot
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN