Skip to main content
Improved formatting
Source Link

My dhcp.confdhcp.conf looks like this

{ allow booting;

allow bootp;

use-host-decl-names on;

ddns-update-style interim;

ignore client-updates;

next-server 172.16.6.237;

subnet 172.16.6.0 netmask 255.255.255.0 {:

{
  allow booting;
  allow bootp;
  use-host-decl-names on;
  ddns-update-style interim;
  ignore client-updates;
  next-server 172.16.6.237;
  subnet 172.16.6.0 netmask 255.255.255.0 {
    option subnet-mask  255.255.255.0;
 
    range dynamic-bootp 172.16.6.10 172.16.6.254;
 
    default-lease-time 21600;
 
    max-lease-time 43200;
 
    option domain-name-servers 127.0.0.1;
 
    option routers      172.16.6.1;
 
    filename "pxelinux.0";

}

host hostname {

             }

  host hostname {
    hardware ethernet 74:27:ea:42:b7:b7;
 
                     fixed-address 172.16.6.238;
 
     option root-path"172.16.6.237:/nfsroot";
  }
}

And my pxelinu.cfg/default file looks like this:

{
  default openwrt
  label openwrt
  kernel openwrt-x86-generic-vmlinuz
  append boot=nfs optionroot=/dev/nfs root-path"172nfsroot=172.16.6.237:/nfsroot";

        nfsroot,soft,vers=3,clientaddr=172.16.6.238 ip=dhcp rw nfsrootdebug
}

} And my pxelinu.cfg/default file looks like this

{

default openwrt

label openwrt

kernel openwrt-x86-generic-vmlinuz

append boot=nfs root=/dev/nfs nfsroot=172.16.6.237:/nfsroot,soft,vers=3,clientaddr=172.16.6.238 ip=dhcp rw nfsrootdebug

}

My dhcp.conf looks like this

{ allow booting;

allow bootp;

use-host-decl-names on;

ddns-update-style interim;

ignore client-updates;

next-server 172.16.6.237;

subnet 172.16.6.0 netmask 255.255.255.0 {

option subnet-mask  255.255.255.0;
 
range dynamic-bootp 172.16.6.10 172.16.6.254;
 
default-lease-time 21600;
 
max-lease-time 43200;
 
option domain-name-servers 127.0.0.1;
 
option routers      172.16.6.1;
 
filename "pxelinux.0";

}

host hostname {

                     hardware ethernet 74:27:ea:42:b7:b7;
 
                     fixed-address 172.16.6.238;
 
                     option root-path"172.16.6.237:/nfsroot";

           }

} And my pxelinu.cfg/default file looks like this

{

default openwrt

label openwrt

kernel openwrt-x86-generic-vmlinuz

append boot=nfs root=/dev/nfs nfsroot=172.16.6.237:/nfsroot,soft,vers=3,clientaddr=172.16.6.238 ip=dhcp rw nfsrootdebug

}

My dhcp.conf looks like this:

{
  allow booting;
  allow bootp;
  use-host-decl-names on;
  ddns-update-style interim;
  ignore client-updates;
  next-server 172.16.6.237;
  subnet 172.16.6.0 netmask 255.255.255.0 {
    option subnet-mask  255.255.255.0;
    range dynamic-bootp 172.16.6.10 172.16.6.254;
    default-lease-time 21600;
    max-lease-time 43200;
    option domain-name-servers 127.0.0.1;
    option routers      172.16.6.1;
    filename "pxelinux.0";
  }

  host hostname {
    hardware ethernet 74:27:ea:42:b7:b7;
    fixed-address 172.16.6.238;
    option root-path"172.16.6.237:/nfsroot";
  }
}

And my pxelinu.cfg/default file looks like this:

{
  default openwrt
  label openwrt
  kernel openwrt-x86-generic-vmlinuz
  append boot=nfs root=/dev/nfs nfsroot=172.16.6.237:/nfsroot,soft,vers=3,clientaddr=172.16.6.238 ip=dhcp rw nfsrootdebug
}
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
dhcp.conf, pxelinux.cfg/default
Source Link

{ default

default openwrt

{ default openwrt

{

default openwrt

dhcp.conf, pxelinux.cfg/default
Source Link

edit:-

My dhcp.conf looks like this

{allow booting;

allow bootp;

use-host-decl-names on;

ddns-update-style interim;

ignore client-updates;

next-server 172.16.6.237;

subnet 172.16.6.0 netmask 255.255.255.0 {

option subnet-mask  255.255.255.0;

range dynamic-bootp 172.16.6.10 172.16.6.254;

default-lease-time 21600;

max-lease-time 43200;

option domain-name-servers 127.0.0.1;

option routers      172.16.6.1;

filename "pxelinux.0";

}

host hostname {

                     hardware ethernet 74:27:ea:42:b7:b7;

                     fixed-address 172.16.6.238;

                     option root-path"172.16.6.237:/nfsroot";

           }

} And my pxelinu.cfg/default file looks like this

{ default openwrt

label openwrt

kernel openwrt-x86-generic-vmlinuz

append boot=nfs root=/dev/nfs nfsroot=172.16.6.237:/nfsroot,soft,vers=3,clientaddr=172.16.6.238 ip=dhcp rw nfsrootdebug

}

If I am giving proto=tcp then the error number will become -110 (time out)

If I removed proto=tcp the error number becomes -101 (Network unreachable)

edit:-

My dhcp.conf looks like this

{allow booting;

allow bootp;

use-host-decl-names on;

ddns-update-style interim;

ignore client-updates;

next-server 172.16.6.237;

subnet 172.16.6.0 netmask 255.255.255.0 {

option subnet-mask  255.255.255.0;

range dynamic-bootp 172.16.6.10 172.16.6.254;

default-lease-time 21600;

max-lease-time 43200;

option domain-name-servers 127.0.0.1;

option routers      172.16.6.1;

filename "pxelinux.0";

}

host hostname {

                     hardware ethernet 74:27:ea:42:b7:b7;

                     fixed-address 172.16.6.238;

                     option root-path"172.16.6.237:/nfsroot";

           }

} And my pxelinu.cfg/default file looks like this

{ default openwrt

label openwrt

kernel openwrt-x86-generic-vmlinuz

append boot=nfs root=/dev/nfs nfsroot=172.16.6.237:/nfsroot,soft,vers=3,clientaddr=172.16.6.238 ip=dhcp rw nfsrootdebug

}

If I am giving proto=tcp then the error number will become -110 (time out)

If I removed proto=tcp the error number becomes -101 (Network unreachable)

cleaned up, spelling, grammar, inconsistencies, removed thanks
Source Link
Timo
  • 6.5k
  • 1
  • 28
  • 30
Loading
Source Link
Loading