I'm trying to get dhcpd on Linux talking to SV2agw on Win98.  The idea here
is to put the 9600 baud port on a C-net and 192.168.1.0, and use
ip masquerade to convert ip adresses to my amprnet adress.  When
I use static ip adresses on the Windows machines, it works great,
and I have no trouble with that.  But Linux dhcpd doesn't seem to respond
to dhcpd requests from Win98 and SV2AGW.


Here's how I bring up the device.

/usr/sbin/kissattach -l /dev/ttyq2 km2 192.168.1.1
/usr/sbin/kissparms -p km2 -t 90 -s 100 -r 128 -f n
/sbin/ifconfig ax2 netmask 255.255.255.0
/sbin/ifconfig ax2 broadcast 192.168.1.255  mtu 1500
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 ax2

Here's the output of ifconfig.  Strange -- why doesn't it list
the broadcast ip, and show the BROADCAST flag?  I
tried doing ifconfig ax2 broadcast in various combinations
and could never get it to show BROADCAST here. I suspect
this is the reason it doesn't work, but I don't know what to do
to fix it.  To me, it the manpage reads like doing
ifconfig broadcast should do it -- right?

[root@hamradio /root]# /sbin/ifconfig ax2
ax2       Link encap:AMPR AX.25  HWaddr KE6I-5
          inet addr:192.168.1.1  Mask:255.255.255.0
          UP RUNNING  MTU:1500  Metric:1
          RX packets:188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:322 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10



Here's what my dhcpd.conf looks like...

subnet 192.168.1.0 netmask 255.255.255.0 {
   range 192.168.1.10 192.168.1.100;
   range 192.168.1.150 192.168.1.200;
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 207.21.11.9, 207.21.11.2;
option domain-name "ampr.org";
}

subnet 207.21.11.0 netmask 255.255.255.0 {
}

subnet 44.4.0.0 netmask 255.255.192.0 {
}

subnet 44.4.64.0 netmask 255.255.192.0 {
}
subnet 192.168.0.1 netmask 255.255.255.255 {
}
subnet 192.168.0.2 netmask 255.255.255.255 {
}
subnet 192.168.0.3 netmask 255.255.255.255 {
}

subnet 192.168.0.4 netmask 255.255.255.255 {
}
subnet 192.168.0.10 netmask 255.255.255.255 {
}


Here's the output of Listen. -- This is right after
the SV2agw Win98 machine boots up.

km2: fm [invalid] to QST ctl UI pid=CC(IP) len 328
IP: len 328 0.0.0.0->255.255.255.255 ihl 20 ttl 128 prot UDP
UDP: len 308 bootpc->bootps Data 300
0000  ......�S........................................................
0040  ................................................................
0080  ................................................................
00C0  ............................................c.Sc5..=..........CA
0100  THRYN.7.....,./9�...........................
km2: fm [invalid] to QST ctl UI pid=CC(IP) len 328
IP: len 328 0.0.0.0->255.255.255.255 ihl 20 ttl 128 prot UDP
UDP: len 308 bootpc->bootps Data 300
0000  ......�S........................................................
0040  ................................................................
0080  ................................................................
00C0  ............................................c.Sc5..=..........CA
0100  THRYN.7.....,./9�...........................
km2: fm [invalid] to QST ctl UI pid=CD(ARP) len 30
ARP: len 30 hwtype AX25 prot IP op REQUEST
sender IPaddr 169.254.253.109 hwaddr [invalid]
target IPaddr 169.254.253.109
km2: fm [invalid] to QST ctl UI pid=CC(IP) len 28
IP: len 28 169.254.253.109->224.0.0.2 ihl 20 ttl 128 prot ICMP
ICMP: type 10
km2: fm [invalid] to QST ctl UI pid=CC(IP) len 96
IP: len 96 169.254.253.109->169.254.255.255 ihl 20 ttl 128 prot UDP
UDP: len 76 netbios-ns->netbios-ns Data 68
0000  ..)......... EDEBFEEIFCFJEOCACACACACACACACAAA.. ..�.. .....�....
0040  ���m
km2: fm [invalid] to QST ctl UI pid=CC(IP) len 96
IP: len 96 169.254.253.109->169.254.255.255 ihl 20 ttl 128 prot UDP
UDP: len 76 netbios-ns->netbios-ns Data 68
0000  ..)......... EKFFEOEHEMEFFGEJFDEJEPEOCACACAAA.. ..�.. .....�....


Here's the log from dhcpd.  Nothing much here.

Oct 21 16:31:09 hamradio dhcpd: Internet Software Consortium DHCP Server 2.0
Oct 21 16:31:09 hamradio dhcpd: Copyright 1995, 1996, 1997, 1998, 1999 The Internet 
Software Consortium.
Oct 21 16:31:09 hamradio dhcpd: All rights reserved.
Oct 21 16:31:09 hamradio dhcpd:
Oct 21 16:31:09 hamradio dhcpd: Please contribute if you find this software useful.
Oct 21 16:31:09 hamradio dhcpd: For info, please visit 
http://www.isc.org/dhcp-contrib.html
Oct 21 16:31:09 hamradio dhcpd:
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/ax4/96:8a:6c:92:40:40/192.168.0.2
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/ax4/96:8a:6c:92:40:40/192.168.0.2
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/ax3/96:8a:6c:92:40:40/192.168.0.3
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/ax3/96:8a:6c:92:40:40/192.168.0.3
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/ax2/96:8a:6c:92:40:40/192.168.1.0
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/ax2/96:8a:6c:92:40:40/192.168.1.0
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/ax1/96:8a:6c:92:40:40/44.4.64.0
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/ax1/96:8a:6c:92:40:40/44.4.64.0
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/ax0/96:8a:6c:92:40:40/192.168.0.1
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/ax0/96:8a:6c:92:40:40/192.168.0.1
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/sm0/96:8a:6c:92:40:40/44.4.0.0
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/sm0/96:8a:6c:92:40:40/44.4.0.0
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/nr1/<null>/192.168.0.10
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/nr1/<null>/192.168.0.10
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/nr0/<null>/192.168.0.9
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/nr0/<null>/192.168.0.9
Oct 21 16:31:09 hamradio dhcpd: Listening on LPF/eth0/00:40:c7:21:10:72/207.21.11.0
Oct 21 16:31:09 hamradio dhcpd: Sending on   LPF/eth0/00:40:c7:21:10:72/207.21.11.0
Oct 21 16:31:09 hamradio dhcpd: Sending on   Socket/fallback/fallback-net

Reply via email to