Discussion:
[Dnsmasq-discuss] no IP from Linux/DNSmasq for NT-workstation
bill evergreen
2016-12-03 14:43:33 UTC
Permalink
Hello List


I would like to be able to connect an old NT4 workstation (I do know NT is
old, very old:-) on a remote location via an USB-tethered mobile
phone(Android/CM12.1) via a Linux-box to the internet (in order to be able
to up- and download some few mails).

Since USB is not supported on NT4, I am wondering if a Linux-Box with
DNSmasq could be used as a DHCP-server for the NT4-machine. At the moment
the mailer software running under NT4 cannot be installed on a newer
operating system :-(


Unfortunaletly the DHCP-client of the NT4-box does not receive an IP,
neither its working with static IP's for the NT4 workstation :-(


Any ideas what am I doing wrong?


Any feedback is appreciated very much! Thank's a lot!

Bill

-----------------------------------------------------------------


Linux Mint-box
**************
- DNSmasq 2.68-1
- IP of USB: 192.168.42.20
- IP of eth0: 192.168.42.30


/etc/dnsmasq.conf (uncommentent lines)
**************************************
- listen-address=127.0.0.1

# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv

# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.42.25,192.168.42.50,12h


/etc/resolv.conf
****************
nameserver 127.0.0.1
nameserver 208.67.222.222


/etc/hosts
**********
- 127.0.1.1 mint
- 192.168.42.40 nt4



/etc/dhcp/dhclient.conf (uncommentent lines)
********************************************
#supersede domain-name "fugue.com home.vix.com";
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers,
dhcp6.fqdn, dhcp6.sntp-servers;
require subnet-mask, domain-name-servers;
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;



NT4-Workstation (if configured manually)
***************
- IP: 192.168.42.40

- pinging to DNS 208.76.222.222 not possible (time out)
Albert ARIBAUD
2016-12-03 15:18:45 UTC
Permalink
Hi Bill,

Le Sat, 3 Dec 2016 15:43:33 +0100
Post by bill evergreen
Hello List
Unfortunaletly the DHCP-client of the NT4-box does not receive an IP,
neither its working with static IP's for the NT4 workstation :-(
Any ideas what am I doing wrong?
Any feedback is appreciated very much! Thank's a lot!
Bill
Well, static IP issues mean you've got a networking problem with this
machine, which you have to solve before you even consider how it behaves
with dnsmasq.

I suggest you go back to the very basics and try to ping the NT machine
from another one which you know is working).
Post by bill evergreen
Linux Mint-box
**************
- DNSmasq 2.68-1
- IP of USB: 192.168.42.20
- IP of eth0: 192.168.42.30
Er... Same subnet on both interfaces?
Post by bill evergreen
NT4-Workstation (if configured manually)
***************
- IP: 192.168.42.40
Try and ping the NT4 machine from the Mint machine after having
disabled the USB interface on it (i.e., using only ethernets). Does
this work?

Amicalement,
--
Albert.
bill evergreen
2016-12-10 13:06:05 UTC
Permalink
Hello Albert,

Thank you very much for the help!


-> Er... Same subnet on both interfaces?
Ok I understand, this is not very elegant... My idea was, that this way no
need to configure routing.

New static IP of the MINB-box eth0: 128.66.12.15
IP NT4: 128.66.12.6



-> Try to ping the NT4 machine from the Mint machine after having disabled
the USB interface on it
Yes it works:-)

***@mint ~ $ ping 128.66.12.6
PING 128.66.12.6 (128.66.12.6) 56(84) bytes of data.
64 bytes from 128.66.12.6: icmp_seq=1 ttl=128 time=0.398 ms
64 bytes from 128.66.12.6: icmp_seq=2 ttl=128 time=0.239 ms
64 bytes from 128.66.12.6: icmp_seq=3 ttl=128 time=0.394 ms


-----------------------------------------------------------------------------------------------------

Even i did not expect it to work, pinging it's own USB-interface from the
MINT-machine does work,
even usb0 is in an other subnet :-)

***@mint ~ $ ifconfig

usb0 Link encap:Ethernet HWaddr 02:xx:xx:xx:xx:xx
inet addr:192.168.42.20 Bcast:192.168.42.255 Mask:255.255.255.0


***@mint ~ $ ping 192.168.42.20
PING 192.168.42.20 (192.168.42.20) 56(84) bytes of data.
64 bytes from 192.168.42.20: icmp_seq=1 ttl=64 time=0.031 ms
64 bytes from 192.168.42.20: icmp_seq=2 ttl=64 time=0.026 ms




What do you suggest to do next, in order to get the NT4 machine a dynamic
IP from DNSmasq/MINT?


Thank you very much for every feedback!

Bill



PS:
Pinging the MINT USB-interface 192.168.42.20(DNSmask not started) from the
NT-machine 128.66.12.6
is not yet possible (host not reachable).
Albert ARIBAUD
2016-12-11 16:19:24 UTC
Permalink
Hi Bill,

Le Sat, 10 Dec 2016 14:06:05 +0100 bill
Post by bill evergreen
Hello Albert,
[...]
Your issue is not related to dnsmasq as far as I can tell, so I would
suggest we keep discussing it offline (I've answered your previous
mail already) and return to the list only once dnsmasq is involved. :)

Amicalement,
--
Albert.
Loading...