diskless boot, nfs server behind router

Ключников А.С. alexs at ulgsm.ru
Mon Jun 28 06:16:05 UTC 2010


* Rick Macklem <rmacklem at uoguelph.ca> [2010-06-26 10:24:44 -0400]:

> 
> 
> On Sat, 26 Jun 2010, alexs at ulgsm.ru wrote:
> 
> [stuff snipped]
> >
> >
> > dhcp seems ok.
> > [alexs:ul-it13:~]>kenv
> > LINES="24"
> > acpi_load="YES"
> > boot.netif.gateway="10.144.140.1"
> > boot.netif.hwaddr="00:1c:c0:5a:f4:72"
> > boot.netif.ip="10.144.142.78"
> > boot.netif.netmask="255.255.252.0"
> > boot.nfsroot.nfshandle="Xbb55e849c6f9fd520c000000011c0600c20af931000000000000000000000000X"
> > boot.nfsroot.path="/exp/fbsd71"
> > boot.nfsroot.server="10.144.140.160"
> > ....
> >
> > It is from diskless host in same subnet where tftp and nfs server.
> >
> 
> Ok, this is when the server is on the same subnet and works ok. Am I
> correct?

Yes.

> 
> > If i use server from over subnet, pxe cant load pxeboot, and kernel can`t
> > mount boot.nfsroot.path="/exp/fbsd71".
> >
> 
> I thought you had said that you had gotten pxeboot to work across to
> the other subnet and that it was the mount of "/" that then failed?
> (It is that case where "boot.netif.gateway" needs to be checked to see
>   that it has the gateway for the client's subnet.)
> 
> > About pxe google found http://www.appdeploy.com/faq/detail.asp?id=10
> > As i understand router must make ip helper.
> > I seen it in cisco routers, not freebsd.
> >
> If you haven't been able to get pxeboot to work when the server is on
> a different subnet, I'm afraid I can't help with that.

Sorry. its my english..

There are two problem, first with pxeboot file downloading, and it not
freebsd maillist subject. 
And second with mount root from nfs server in different subnet.

I`ll try write again from anothe way.

I have two subnets:
10.144.142.0/22 - here is tftp server and diskless.
10.144.130.0/24 - here is nfs server.

in isc-dhcpd.conf:
next-server 10.144.140.160;
option root-path "10.144.130.160:/exp/fbsdstable";


In this case, pxeboot loading is ok, kernel loading from
10.144.130.160:/exp/fbsdstable ok too.

booting freeze on:
...
uhub3: 2 ports with 2 removable, self powered
uhub4: 8 ports with 8 removable, self powered
Received DHCP Offer packet on re0 from 10.144.140.160 (accepted) (no root path)
Sending DHCP Request packet from interface re0 (00:1c:c0:5a:f4:72)
Received DHCP Ack packet on re0 from 10.144.140.160 (accepted) (got root path)
re0 at 10.144.142.78 server 10.144.130.160 server name DHCPserver boot file pxeboot
subnet mask 255.255.252.0 router 10.144.140.1 rootfs 10.144.140.160:/exp/fbsdstable 
Adjusted interface re0
SMP: AP CPU #1 Launched!
Trying to mount root from nfs:
NFS ROOT: 10.144.130.160:/exp/fbsdstable
 

Now diskless 8.1 PRERELEASE 


-- 
alexs


More information about the freebsd-stable mailing list