1 2 Previous Next 17 Replies Latest reply on Aug 26, 2010 7:17 AM by Bill Robinson

    BL 8.0.0.341 PXE 9907 port conflict

      Hi all!

      I'm configuring PXE on BL8.0.0.341. I have the DHCP and the PXE on the same virtual machine, on a private network. Thing is that when opening the PXE console, I receive a message saying that the 9907 port is already in use. Also, I run the diagnostics of the PXE utility and with DHCP down, it complains about some using the port 67 UDP, since it is in use. The diagnostics only passes with PXE service down.

       

      Any help?

        • 1. Re: BL 8.0.0.341 PXE 9907 port conflict

          When pxe and dhcp run on the same server, you have to configure PXE to run on a different port and then you have to configure your DHCP scope options to point to PXE on that port. I don't know if it is still the same in 8.0, but there used to be a pxe.conf that you could set the port number in (4011 was the old practice). You would also need to set se_config_file=true in the file as well.  You would then configure your DHCP scope options (#60) to point there. This used to be handled automatically by the BL provisioning manager installer when installing the blpxe process. It would ask you if the pxe was being installed on the DHCP server.

          • 2. Re: BL 8.0.0.341 PXE 9907 port conflict

            Also, in VM's we would also have to choke the mtu size down to at least 1452 to account for some header wrapping stuff to be sure that the PXE and TFTP packets weren't getting fragmented. I don't know if that ever was fixed.

            • 3. Re: BL 8.0.0.341 PXE 9907 port conflict

              Adam:

              This was done according to the PXE install guide

              netsh dhcp>server \\localhost
              netsh dhcp server>show optionvalue all

                      DHCP Standard Option :
                      General Option Values:
                      OptionId : 3
                      Option Value:
                              Number of Option Elements = 1
                              Option Element Type = IPADDRESS
                              Option Element Value = 172.21.54.1
                      OptionId : 60
                      Option Value:
                              Number of Option Elements = 1
                              Option Element Type = STRING
                              Option Element Value = PXEClient
                      OptionId : 212

                      Option Value:
                              Number of Option Elements = 1
                              Option Element Type = WORD
                              Option Element Value = 9831
                      OptionId : 211
                      Option Value:
                              Number of Option Elements = 1
                              Option Element Type = IPADDRESS
                              Option Element Value = 172.21.54.85

               

               

              • 4. Re: BL 8.0.0.341 PXE 9907 port conflict

                Good. That all looks correct. But your pxe service is still trying to start on port 67. In the /bin (or br) there should be a pxe.conf file. You need to make the changes that I mentioned there so that pxe will start on 4011, and not 67.

                 

                Adam Bowen

                BMC Software

                • 5. Re: BL 8.0.0.341 PXE 9907 port conflict

                  Adam:

                  from the PXE.conf

                  # the port to listen on

                  listen_port=4011

                  • 6. Re: BL 8.0.0.341 PXE 9907 port conflict

                    Have you set se_config_file=true ? (Is that in there anymore)?

                    • 7. Re: BL 8.0.0.341 PXE 9907 port conflict

                      And without DHCP running, does PXE start and run on 67 or 4011?

                      • 8. Re: BL 8.0.0.341 PXE 9907 port conflict
                        Bill Robinson

                        I haven't seen into 8.0 yet for this, but in 7.6 there is a java option passed in the /usr/nsh/br/blpxe file "-Djava.net.preferIPv4Stack=true" if the pxe and dhcp server are on the same box.  If they are not, you don't need that option.

                        • 9. Re: BL 8.0.0.341 PXE 9907 port conflict

                          Hi,

                           

                          I am seeing the same issue as you.  If I run the pxe diag tool it fails.  Output in the PxeDiag.log is as follows:

                           

                          ============

                          TEST:Starting PXE/TFTP Server Diagnostics
                          INFO:PXE server is configured to use Database for PXE Configuration parameters
                          TEST:Checking Interface to Bind:eth0
                          ERROR:Unable to open Datagram Socket on port 67, Interface:eth0 Address already in use DHCP Server or smilar services is already running on Port 67
                          REMEDIATION:Steps to Start PXE server
                          :1)Stop the DHCP Server or a program running on Port 67
                          :2)Start the PXE server
                          :3)Start the DHCP Server or a program running on Port 67
                          TEST:Checking TFTP Server Config
                          INFO:TFTP Server IP configuration is valid
                          TEST:Checking for TFTP Server Base Directory configuration
                          INFO:TFTP Server Base Directory configuration is valid
                          ============

                           

                          I wonder however if the diag failing in 8.0 is a bit of a red herring as I can get a VM to pick up an IP from my DHCP scope and boot via PXE.

                           

                          Did you ever get any further with the issue?

                          NB. I am on BL 8.0.0.433

                          • 10. Re: BL 8.0.0.341 PXE 9907 port conflict

                            Scott:

                            Unfortunately not. I got stucked there. The POC I was building the machine for fell off. So I never got back to that machine.

                             

                            Regards.

                             

                             

                            Mariano Grinfeld

                            Software Consultant

                            Service Automation

                            BMC Software de Argentina

                            Ing. Butti 220 piso 14 - C1001

                            Buenos Aires - Argentina

                            tel: +5411-5776-7533

                            cel: +54911-5179 7434

                            BBPIN: 20B8B587

                            • 11. Re: BL 8.0.0.341 PXE 9907 port conflict
                              Paul Seager-Smith

                              You need to make sure that the PXE server starts before DHCP. You also need to make sure that the DHCP service waits until the PXE server is listening on port 4011 before it starts up.

                               

                              We have this setup on Linux and we had to modify the startup order so that PXE started before DHCP and the PXE startup script actually waited until it was listening on port 4011.

                               

                              The diagnostic tool is a red herring in this case as it always complains about this in this configuration.

                               

                              regards,

                               

                              Paul

                              • 12. Re: BL 8.0.0.341 PXE 9907 port conflict
                                Bill Robinson

                                This seems like a defect, you should be able to start them however you want.  pxe should actually start after dhcp usually..

                                • 13. Re: BL 8.0.0.341 PXE 9907 port conflict
                                  Paul Seager-Smith

                                  If you start PXE after DHCP when they are on the same box, you actually get an error in the pxe.log telling you to stop DHCP and start PXE first. It works for us when they are started the other way around.

                                   

                                  You're right that the normal order is dhcp then pxe though.

                                  • 14. Re: BL 8.0.0.341 PXE 9907 port conflict
                                    Bill Robinson

                                    I thought the option that tells the pxe to share in the blpxe file took care of that problem?

                                    1 2 Previous Next