Re: back at trying to make network, network
On Sunday 16 June 2019 11:58:33 am grumpy@mailfence.com wrote:
> On Sun, 16 Jun 2019, Gene Heskett wrote:
> > Greetings;
> > My home network is all hosts based, but has a gateway and uses the
> > router as a relay to my ISP's nameservers for addresses not in the
> > hosts file.
> >
> > But I'll be switched if I can make it work that way on a pi-3b
> > running stretch.
> >
> > When it needs to use a dns lookup, it sends the dns request from
> > picnc.local, which is of course the ahahi address, 169.254.etc.etc
> >
> > Somehow, I need to convince this thing it only has one address!!!
> > My current /e/n/i.d/eth0 file:
> > -------------
> > auto eth0
> >
> > iface eth0 inet static
> > address 192.168.71.12/24
> > gatewasy 192.168.71.1
> > dns-nameserver 192.168.71.1
> > search hosts dns-nameserver
> > hwadress 192.168.71.12
> > --------------
> > adding the hwaddress just now, and restarting networking did get rid
> > of the ahahi supplied lines in an ip a report so it looks like this
> > but now a second request shows they are back.
> >
> > 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> > state UP group default qlen 1000
> > link/ether b8:27:eb:d3:47:2d brd ff:ff:ff:ff:ff:ff
> > inet 192.168.71.12/24 brd 192.168.71.255 scope global eth0
> > valid_lft forever preferred_lft forever
> > inet 169.254.163.253/16 brd 169.254.255.255 scope global eth0
> > valid_lft forever preferred_lft forever
> > inet6 fe80::7e94:f0c7:8cec:ce84/64 scope link
> > valid_lft forever preferred_lft forever
> >
> > And I have those 2 lines in /e/sysctl.conf that are supposed to shut
> > off the ipv6 stuff since I'm at least 100 miles from ANY ipv6
> > service.
> >
> > /e/resolv.conf
> > nameserver 192.168.71.1
> > search hosts nameserver
> >
> > But if I ping yahoo.com, this is what I get so of course it fails:
> > pi@picnc:/etc $ ping yahoo.com
> > PING yahoo.com (72.30.35.9) 56(84) bytes of data.
> >
> >> From picnc.local (169.254.163.253) icmp_seq=1 Destination Host
> >
> > Unreachable
> >
> >> From picnc.local (169.254.163.253) icmp_seq=2 Destination Host
> >
> > Unreachable
> >
> >> From picnc.local (169.254.163.253) icmp_seq=3 Destination Host
> >
> > Unreachable
> >
> > I has as much of avahi killed as systemd will let me but I can't
> > kill it all. That dns resolution for yahoo.com is correct, so that
> > working fine but it being sent from a wrong address the rest of this
> > system knows nothing about.
> >
> > There is still an avahi (chroot helper) running. So how do I get rid
> > of the from hostname.local bs?
> >
> >
> > I can plug a raspian jessie u-sd card back into that pi, and it
> > works perfectly.
> >
> > Thanks all.
>
> i have always disabled avahi
> never had a use for it
> double check
> systemctl status avahi-daemon.service
> systemctl status avahi-daemon.socket
>
> i have 6 pi's running various things around the house
> this is one
>
> $ cat /etc/debian_version
> 9.8
>
> $ ip addr
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
> group default qlen 1000
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet 127.0.0.1/8 scope host lo
> valid_lft forever preferred_lft forever
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
> state UP group default qlen 1000
> link/ether b8:27:eb:8d:37:e2 brd ff:ff:ff:ff:ff:ff
> inet 192.168.2.17/24 brd 192.168.2.255 scope global eth0
> valid_lft forever preferred_lft forever
>
> $ ifconfig
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.2.17 netmask 255.255.255.0 broadcast
> 192.168.2.255 ether b8:27:eb:8d:37:e2 txqueuelen 1000 (Ethernet) RX
> packets 499797608 bytes 651308643127 (606.5 GiB) RX errors 0 dropped
> 1 overruns 0 frame 0
> TX packets 486196512 bytes 38063306645 (35.4 GiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
> inet 127.0.0.1 netmask 255.0.0.0
> loop txqueuelen 1000 (Local Loopback)
> RX packets 1112 bytes 278979 (272.4 KiB)
> RX errors 0 dropped 0 overruns 0 frame 0
> TX packets 1112 bytes 278979 (272.4 KiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
>
> $ netstat -rn
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window
> irtt Iface
> 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0
> 0 eth0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0
> 0 eth0
>
> $ ps -ef | grep avahi
> grumpy 22488 22395 0 10:50 pts/2 00:00:00 grep --color=auto
> avahi
All that is nice Grumpy,IF nettools were installed, but I've a chicken vs
egg here, I can't install nettools until I can make the network work.
And its the only armhf on the local net. There is an arm64 or 2 I'm
trying to figure out what to do with them, but no more armhf's.
Thanks.
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Reply to: