Operating System - HP-UX
1833541 Members
2958 Online
110061 Solutions
New Discussion

Gettting Syntax Error for an entry setuped in file /etc/bootptab for relaying bootp requests.

 
Prasad Joshi
Regular Advisor

Gettting Syntax Error for an entry setuped in file /etc/bootptab for relaying bootp requests.

Hi All,

We are having a ignite server as well as pxe server for OS installation on HP-UX and Linux servers respectively. Having these to servers in the same subnet is creating a problem. So,
what we are trying to do is, shutdown the DHCP on the PXE server and relay the bootp requests from linux client to Linux PXE server. I think this should work.

Now, to relay the bootp requests I have added these lines in the /etc/bootptab

<<<<<<< a part of /etc/bootptab >>>>>>>>>>>

galapagos:\
ht=ethernet:\
bp=10.216.152.40:\
th=2:\
hp=8

swlx42:\
tc=galapagos:\
ha=00093D111D03:\
ip=10.216.154.42:\
hn:\
sm=255.255.248.0

<<<<<<< a part of /etc/bootptab >>>>>>>>>>>

galapagos ==> is the PXE servers hostname and its IP is 10.216.152.40

swlx42 ==> machiine on which I want to install LINUX. IP->10.216.154.42 and MAC 00:09:3D:11:1D:03



Now, when I try installing OS on Linux machine through PXE. I am getting these error msgs in the file /var/adm/syslog/syslog.log


May 24 12:50:43 swia08 inetd[7719]: telnet/tcp: Connection from unknown (172.31.46.75) at Thu May 24 12:50:43 2007
May 24 12:51:43 swia08 bootpd[7047]: reading new "/etc/dhcptab"
May 24 12:51:43 swia08 bootpd[7047]: group count: 1
May 24 12:51:43 swia08 bootpd[7047]: reading new "/etc/bootptab"
May 24 12:51:43 swia08 bootpd[7047]: duplicate hardware address: 0016353E6C82
May 24 12:51:43 swia08 bootpd[7047]: bad hostname: "tc=ignite-gateway"
May 24 12:51:43 swia08 bootpd[7047]: entry with hostname "tc=ignite-gateway" will be ignored.
May 24 12:51:43 swia08 bootpd[7047]: syntax error in entry for host "relay-default"
May 24 12:51:43 swia08 bootpd[7047]: entry with hostname "relay-default" will be ignored.
May 24 12:51:43 swia08 bootpd[7047]: bad hostname: "th=2"
May 24 12:51:43 swia08 bootpd[7047]: entry with hostname "th=2" will be ignored.
May 24 12:51:43 swia08 bootpd[7047]: can't find tc="relay-default"
May 24 12:51:43 swia08 bootpd[7047]: bad hardware address for host "swlx42"
May 24 12:51:43 swia08 bootpd[7047]: entry with hostname "swlx42" will be ignored.
May 24 12:51:43 swia08 bootpd[7047]: read 15 entries from "/etc/bootptab"


So, there is some problem with the entries that I have made in the file /etc/bootptab.

Can anyone please tell me the correct syntax for writing these entries?

Thanks and Regards,
Prasad.
1 REPLY 1
Prasad Joshi
Regular Advisor

Re: Gettting Syntax Error for an entry setuped in file /etc/bootptab for relaying bootp requests.

These are the correct logs from syslog.log file.

May 24 13:00:35 swia08 bootpd[7047]: reading new "/etc/dhcptab"
May 24 13:00:35 swia08 bootpd[7047]: group count: 1
May 24 13:00:35 swia08 bootpd[7047]: reading new "/etc/bootptab"
May 24 13:00:35 swia08 bootpd[7047]: duplicate hardware address: 0016353E6C82
May 24 13:00:35 swia08 bootpd[7047]: syntax error in entry for host "galapagos"
May 24 13:00:35 swia08 bootpd[7047]: entry with hostname "galapagos" will be ignored.
May 24 13:00:35 swia08 bootpd[7047]: bad hostname: "th=2"
May 24 13:00:35 swia08 bootpd[7047]: entry with hostname "th=2" will be ignored.
May 24 13:00:35 swia08 bootpd[7047]: can't find tc="galapagos"
May 24 13:00:35 swia08 bootpd[7047]: bad hardware address for host "swlx42"
May 24 13:00:35 swia08 bootpd[7047]: entry with hostname "swlx42" will be ignored.
May 24 13:00:35 swia08 bootpd[7047]: read 14 entries from "/etc/bootptab"
May 24 13:00:35 swia08 bootpd[7047]: reading new "/etc/dhcpdeny"
May 24 13:00:35 swia08 bootpd[7047]: read 142 entries from "/etc/dhcpdeny"