bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #55636] Wrong TFTP server when booted from proxyDHCP


From: kvaps
Subject: [bug #55636] Wrong TFTP server when booted from proxyDHCP
Date: Fri, 20 Dec 2019 06:44:16 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Follow-up Comment #1, bug #55636 (project grub):

Hi, I just faced with the same issue when implementing GRUB support for LTSP
(https://github.com/ltsp/ltsp/pull/108#issuecomment-567744162)

I was thinking that problem can be simple solved my setting correct
next-server (SIADDR) option on proxy-dhcp server, but I was wrong because grub
drops into rescue shell any way:

iPXE (PCI 00:03.0) starting execution...ok
iPXE initialising devices...ok

iPXE 1.0.0+ (0600d) -- Open Source Network Boot Firmware -- http://ipxe.org
Features: DNS HTTP iSCSI TFTP AoE ELF MBOOT PXE bzImage Menu PXEXT

netO: 02:00:10:ad:4a:47 using virtio-net on 9000:00:03.0 (open)
  [Link:up, TX:0 TXE:0 RX:0 RXE:0]

Configuring (netO 02:00:10:ad:4a:47)... ok

netO: 192.168.67.267/255.255.255.0 gw 192.168.67.1
Booting from PXE menu
PXE
PXEBS (netO type 640)... ok
Next server: 192.168.67.10
Filename: Iltsp/grub/i386-pc/core .0
tftp://192.168.67.10/ltsp/grub/i386-pce/core.9... ok
core.0 : 47787 bytes [PXE-NBP]
error: time out opening ‘/ltsp/grub/i386-pc/normal.mod’ .
Entering rescue mode...
grub rescue>


If I call set I will see main dhcp server address only:


grub rescue> set
cmdpath=(tftp,192.168.67.1)ltsp/grub/i386-pc
net_default_interface=pxe
net_default_ip=192.168.67.26
net_default_mac=02:00:10:ad:4a:47
net_default_server=192.168.67.1
net_pxe_boot_file=ltsp/grub/i386-pc/core.0
net_pxe_ip=192.168.67.26
net_pxe_mac=02:00:10:ad:4a:47
net_pxe_next_server=192.168.67.1
net_pxe_vendor_class_identifier=PXEClient
prefix=(tftp,192.168.67.1)/ltsp/grub
pxe_default_server=192.168.67.1
root=tftp,192.168.67.1
grub rescue>


A little investigation shows that proxy-dhcp sending correct next-server
(SIADDR) option in it's replies:

0 Client request:

  TIME: 2019-12-20 01:40:06.103
    IP: 0.0.0.0 (2:0:10:ad:4a:47) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: bc417532
  SECS: 4
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         1 (DHCPDISCOVER)
OPTION:  57 (  2) Maximum DHCP message size 1472
OPTION:  93 (  2) Client System             0000             ..
OPTION:  94 (  3) Client NDI                010201           ...
OPTION:  60 ( 32) Vendor class identifier   PXEClient:Arch:00000:UNDI:002001
OPTION:  77 (  4) User-class Identification 69505845         iPXE
OPTION:  55 ( 23) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                              6 (DNS server)
                                              7 (Log server)
                                             12 (Host name)
                                             15 (Domainname)
                                             17 (Root path)
                                             26 (Interface MTU)
                                             43 (Vendor specific info)
                                             60 (Vendor class identifier)
                                             66 (TFTP server name)
                                             67 (Bootfile name)
                                            119 (Domain Search)
                                            128 (???)
                                            129 (???)
                                            130 (???)
                                            131 (???)
                                            132 (???)
                                            133 (???)
                                            134 (???)
                                            135 (???)
                                            175 (???)
                                            203 (???)
                                            
OPTION: 175 ( 45) ???                       b105011af41000eb ........
                                            0301000017010122 ......."
                                            0101130101110101 ........
                                            2701011901011001 '.......
                                            0221010115010118 .!......
                                            0101120101       .....
OPTION:  61 (  7) Client-identifier         01:02:00:10:ad:4a:47
OPTION:  97 ( 17) UUID/GUID                 00555a96be0e347d .UZ...4}
                                            4ba25965bd22db6e K.Ye.".n
                                            e8               .

0 proxy-dhcp reply:

  TIME: 2019-12-20 01:40:06.104
    IP: 192.168.67.10 (2:0:10:ad:4a:46) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: bc417532
  SECS: 4
 FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         2 (DHCPOFFER)
OPTION:  54 (  4) Server identifier         192.168.67.10
OPTION:  60 (  9) Vendor class identifier   PXEClient
OPTION:  97 ( 17) UUID/GUID                 00555a96be0e347d .UZ...4}
                                            4ba25965bd22db6e K.Ye.".n
                                            e8               .
OPTION:  43 ( 48) Vendor specific info      0601030a04005058 ......PX
                                            450807800201c0a8 E.......
                                            430a091b8002186c C......l
                                            7473702f67727562 tsp/grub
                                            2f693338362d7063 /i386-pc
                                            2f636f72652e30ff /core.0.         
       

0 main-dhcp reply:

  TIME: 2019-12-20 01:40:06.104
    IP: 192.168.67.1 (2:0:10:ad:4a:48) > 192.168.67.26 (2:0:10:ad:4a:47)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: bc417532
  SECS: 4
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.67.26
SIADDR: 192.168.67.1
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         2 (DHCPOFFER)
OPTION:  54 (  4) Server identifier         192.168.67.1
OPTION:  51 (  4) IP address leasetime      43200 (12h)
OPTION:  58 (  4) T1                        21600 (6h)
OPTION:  59 (  4) T2                        37800 (10h30m)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:  28 (  4) Broadcast address         192.168.67.255
OPTION:   3 (  4) Routers                   192.168.67.1
OPTION:   6 (  4) DNS server                192.168.67.1

0 Client request:

  TIME: 2019-12-20 01:40:06.104
    IP: 0.0.0.0 (2:0:10:ad:4a:47) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: bc417532
  SECS: 11
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         3 (DHCPREQUEST)
OPTION:  57 (  2) Maximum DHCP message size 1472
OPTION:  93 (  2) Client System             0000             ..
OPTION:  94 (  3) Client NDI                010201           ...
OPTION:  60 ( 32) Vendor class identifier   PXEClient:Arch:00000:UNDI:002001
OPTION:  77 (  4) User-class Identification 69505845         iPXE
OPTION:  55 ( 23) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                              6 (DNS server)
                                              7 (Log server)
                                             12 (Host name)
                                             15 (Domainname)
                                             17 (Root path)
                                             26 (Interface MTU)
                                             43 (Vendor specific info)
                                             60 (Vendor class identifier)
                                             66 (TFTP server name)
                                             67 (Bootfile name)
                                            119 (Domain Search)
                                            128 (???)
                                            129 (???)
                                            130 (???)
                                            131 (???)
                                            132 (???)
                                            133 (???)
                                            134 (???)
                                            135 (???)
                                            175 (???)
                                            203 (???)
                                            
OPTION: 175 ( 45) ???                       b105011af41000eb ........
                                            0301000017010122 ......."
                                            0101130101110101 ........
                                            2701011901011001 '.......
                                            0221010115010118 .!......
                                            0101120101       .....
OPTION:  61 (  7) Client-identifier         01:02:00:10:ad:4a:47
OPTION:  97 ( 17) UUID/GUID                 00555a96be0e347d .UZ...4}
                                            4ba25965bd22db6e K.Ye.".n
                                            e8               .
OPTION:  54 (  4) Server identifier         192.168.67.1
OPTION:  50 (  4) Request IP address        192.168.67.26

0 main-dhcp reply:

  TIME: 2019-12-20 01:40:06.207
    IP: 192.168.67.1 (2:0:10:ad:4a:48) > 192.168.67.26 (2:0:10:ad:4a:47)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: bc417532
  SECS: 11
 FLAGS: 0
CIADDR: 0.0.0.0
YIADDR: 192.168.67.26
SIADDR: 192.168.67.1
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         5 (DHCPACK)
OPTION:  54 (  4) Server identifier         192.168.67.1
OPTION:  51 (  4) IP address leasetime      43200 (12h)
OPTION:  58 (  4) T1                        21600 (6h)
OPTION:  59 (  4) T2                        37800 (10h30m)
OPTION:   1 (  4) Subnet mask               255.255.255.0
OPTION:  28 (  4) Broadcast address         192.168.67.255
OPTION:   3 (  4) Routers                   192.168.67.1
OPTION:   6 (  4) DNS server                192.168.67.1

0 Client request:

  TIME: 2019-12-20 01:40:06.311
    IP: 192.168.67.26 (2:0:10:ad:4a:47) > 192.168.67.10 (2:0:10:ad:4a:46)
    OP: 1 (BOOTPREQUEST)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 00000000
  SECS: 4
 FLAGS: 7f80
CIADDR: 192.168.67.26
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: .
OPTION:  53 (  1) DHCP message type         3 (DHCPREQUEST)
OPTION:  57 (  2) Maximum DHCP message size 1472
OPTION:  93 (  2) Client System             0000             ..
OPTION:  94 (  3) Client NDI                010201           ...
OPTION:  60 (  9) Vendor class identifier   PXEClient
OPTION:  77 (  4) User-class Identification 69505845         iPXE
OPTION:  55 ( 23) Parameter Request List      1 (Subnet mask)
                                              3 (Routers)
                                              6 (DNS server)
                                              7 (Log server)
                                             12 (Host name)
                                             15 (Domainname)
                                             17 (Root path)
                                             26 (Interface MTU)
                                             43 (Vendor specific info)
                                             60 (Vendor class identifier)
                                             66 (TFTP server name)
                                             67 (Bootfile name)
                                            119 (Domain Search)
                                            128 (???)
                                            129 (???)
                                            130 (???)
                                            131 (???)
                                            132 (???)
                                            133 (???)
                                            134 (???)
                                            135 (???)
                                            175 (???)
                                            203 (???)
                                            
OPTION: 175 ( 45) ???                       b105011af41000eb ........
                                            0301000017010122 ......."
                                            0101130101110101 ........
                                            2701011901011001 '.......
                                            0221010115010118 .!......
                                            0101120101       .....
OPTION:  61 (  7) Client-identifier         01:02:00:10:ad:4a:47
OPTION:  97 ( 17) UUID/GUID                 00555a96be0e347d .UZ...4}
                                            4ba25965bd22db6e K.Ye.".n
                                            e8               .
OPTION:  43 (  7) Vendor specific info      470480020000ff   G......

0 proxy-dhcp reply:

  TIME: 2019-12-20 01:40:06.312
    IP: 192.168.67.10 (2:0:10:ad:4a:46) > 192.168.67.26 (2:0:10:ad:4a:47)
    OP: 2 (BOOTPREPLY)
 HTYPE: 1 (Ethernet)
  HLEN: 6
  HOPS: 0
   XID: 00000000
  SECS: 4
 FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 192.168.67.26
SIADDR: 192.168.67.10
GIADDR: 0.0.0.0
CHADDR: 02:00:10:ad:4a:47:00:00:00:00:00:00:00:00:00:00
 SNAME: .
 FNAME: ltsp/grub/i386-pc/core.0.
OPTION:  53 (  1) DHCP message type         5 (DHCPACK)
OPTION:  54 (  4) Server identifier         192.168.67.10
OPTION:  60 (  9) Vendor class identifier   PXEClient
OPTION:  97 ( 17) UUID/GUID                 00555a96be0e347d .UZ...4}
                                            4ba25965bd22db6e K.Ye.".n
                                            e8               .
OPTION:  43 (  7) Vendor specific info      470480020000ff   G......



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55636>

_______________________________________________
  Сообщение отправлено по Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]