[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: back at trying to make network, network




On 6/16/19 11:58 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
pi@picnc:~ $ sudo systemctl status avahi-daemon.service
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
   Loaded: loaded (/lib/systemd/system/avahi-daemon.service; disabled; vendor preset: enabled)    Active: active (running) since Wed 2017-11-29 17:59:27 +05; 1 years 6 months ago
 Main PID: 3734 (avahi-daemon)
   Status: "avahi-daemon 0.6.32 starting up."
   CGroup: /system.slice/avahi-daemon.service
           └─3734 avahi-daemon: running [picnc.local]

Jun 16 00:26:31 picnc avahi-daemon[3734]: Leaving mDNS multicast group on interface eth0.IPv4 with address 169.254.163.253. Jun 16 00:26:31 picnc avahi-daemon[3734]: Withdrawing address record for fe80::7e94:f0c7:8cec:ce84 on eth0. Jun 16 00:26:31 picnc avahi-daemon[3734]: Withdrawing address record for 169.254.163.253 on eth0. Jun 16 00:26:31 picnc avahi-daemon[3734]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.71.12. Jun 16 00:26:31 picnc avahi-daemon[3734]: New relevant interface eth0.IPv4 for mDNS. Jun 16 00:26:31 picnc avahi-daemon[3734]: Registering new address record for 192.168.71.12 on eth0.IPv4. Jun 16 00:26:34 picnc avahi-daemon[3734]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::7e94:f0c7:8cec:ce84. Jun 16 00:26:34 picnc avahi-daemon[3734]: New relevant interface eth0.IPv6 for mDNS. Jun 16 00:26:34 picnc avahi-daemon[3734]: Registering new address record for fe80::7e94:f0c7:8cec:ce84 on eth0.*. Jun 16 00:26:42 picnc avahi-daemon[3734]: Registering new address record for 169.254.163.253 on eth0.IPv4.

systemctl status avahi-daemon.socket
pi@picnc:~ $ sudo systemctl status avahi-daemon.socket
● avahi-daemon.socket - Avahi mDNS/DNS-SD Stack Activation Socket
   Loaded: loaded (/lib/systemd/system/avahi-daemon.socket; disabled; vendor preset: enabled)    Active: active (running) since Wed 2017-11-29 09:50:34 +05; 1 years 6 months ago
   Listen: /var/run/avahi-daemon/socket (Stream)

Nov 29 09:50:34 picnc systemd[1]: Listening on Avahi mDNS/DNS-SD Stack Activation Socket.


So its running. Stopped and disabled both, restarted networking. No 169.254 bs left, but:pi@picnc:~ $ ping yahoo.com

PING yahoo.com (98.138.219.231) 56(84) bytes of data.

From 169.254.163.253 (169.254.163.253) icmp_seq=1 Destination Host Unreachable

From 169.254.163.253 (169.254.163.253) icmp_seq=2 Destination Host Unreachable

From 169.254.163.253 (169.254.163.253) icmp_seq=3 Destination Host Unreachable

From 169.254.163.253 (169.254.163.253) icmp_seq=4 Destination Host Unreachable

From 169.254.163.253 (169.254.163.253) icmp_seq=5 Destination Host Unreachable

From 169.254.163.253 (169.254.163.253) icmp_seq=6 Destination Host Unreachable

And I obviously need to tell t-bird this ain't a winderz boix so quit using a crlf for EOL.

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
pi@picnc:~ $ ps -ef | grep avahi
pi        5395  5088  0 03:02 pts/2    00:00:00 grep --color=auto avahi

Thanks Nik.

Cheers, Gene




Reply to: