mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: summer@os2.ami.com.au
To: "David S. Miller" <davem@redhat.com>
Cc: summer@os2.ami.com.au, linux-kernel@vger.kernel.org,
	netdev@oss.sgi.com, summer@numbat.os2.ami.com.au
Subject: Re: BOOTP and 2.4.14
Date: Fri, 16 Nov 2001 03:01:04 +0800	[thread overview]
Message-ID: <200111151901.fAFJ14x07788@numbat.os2.ami.com.au> (raw)
In-Reply-To: Message from "David S. Miller" <davem@redhat.com>  of "Thu, 15 Nov 2001 07:11:05 PST." <20011115.071105.45157375.davem@redhat.com>

> 
> Set your kernel command line correctly, the format is:
> 
> 	HOSTNAME.NIS_DOMAINNAME
> 
> It has been like this since ancient times :-)
> 


I don't understand. According to nfsroot.txt all I need is this:

[root@numbat root]# cat /misc/fd0/syslinux.cfg
default linux
prompt 1
timeout 1
label linux
        kernel vmlinuz
        append  root=/dev/nfs ip=bootp initrd=initial.dsk
[root@numbat root]#

The kernel messages say it's got the domain name, but by the time it 
gets to init (I altered /etc/rc.d/rc.sysinit to see) it's using the IP 
address for host/domain names, and that's what I see in the code I 
cited.

The nis domain's not being set, but I've not established the kernel's 
at failt.

According to the debugging code which I've enabled, it's seeing 
extensions 1, 3, 6, 55, 45, 46 and 15.

1 looks like the netmask, 3, 6, 44 and 45 are all the IP address of the 
server (it does several things so that's probably okay), 46 has the 
value 08 and 15 is the DNS domain name.

The client's IP address isn't reported by the debugging code, but is 
set to the value I expect.

I see the extensions are parsed in ic_do_bootp_ext which silently 
ignores 44, 45 & 46.

Here are some kernel messages from booting the client:
Nov 16 02:46:51 192 kernel: IP-Config: Entered.
Nov 16 02:46:52 192 kernel: IP-Config: eth0 UP (able=1, xid=46e93477)
Nov 16 02:46:52 192 kernel: Sending BOOTP requests .DHCP/BOOTP: Got 
extension 1: ff ff ff 00
Nov 16 02:46:52 192 kernel: DHCP/BOOTP: Got extension 3: c0 a8 01 01
Nov 16 02:46:52 192 kernel: DHCP/BOOTP: Got extension 6: c0 a8 01 01
Nov 16 02:46:52 192 kernel: DHCP/BOOTP: Got extension 44: c0 a8 01 01
Nov 16 02:46:52 192 kernel: DHCP/BOOTP: Got extension 45: c0 a8 01 01
Nov 16 02:46:52 192 kernel: DHCP/BOOTP: Got extension 46: 08
Nov 16 02:46:52 192 kernel: DHCP/BOOTP: Got extension 15: 4f 73 32 2e 
41 6d 69 2e 43 6f 6d 2e 41 75
Nov 16 02:46:52 192 kernel:  OK
Nov 16 02:46:52 192 kernel: IP-Config: Got BOOTP answer from 
192.168.1.1, my address is 192.168.1.20
Nov 16 02:46:52 192 kernel: IP-Config: Complete:
Nov 16 02:46:52 192 kernel:       device=eth0, addr=192.168.1.20, 
mask=255.255.255.0, gw=192.168.1.1,
Nov 16 02:46:52 192 kernel:      host=192.168.1.20, 
domain=Os2.Ami.Com.Au, nis-domain=(none),
Nov 16 02:46:52 192 kernel:      bootserver=192.168.1.1, 
rootserver=192.168.1.1, rootpath=


By the time init passes control to ins initialisation script, the 
hostname command reports 192 and dnsdomainname reports 168.0.1.


-- 
Cheers
John Summerfield

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my 
disposition.




  reply	other threads:[~2001-11-15 19:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-15  6:28 summer
2001-11-15 15:11 ` David S. Miller
2001-11-15 19:01   ` summer [this message]
2001-11-15 21:13 ` Peter Wächtler
2001-11-15 23:50   ` summer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200111151901.fAFJ14x07788@numbat.os2.ami.com.au \
    --to=summer@os2.ami.com.au \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    --cc=summer@numbat.os2.ami.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®