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

Re: Assorted arm-buster problems - network configuration



	Hi.

On Thu, Jul 04, 2019 at 11:40:30AM -0400, Gene Heskett wrote:
> On Thursday 04 July 2019 03:16:31 andreimpopescu@gmail.com wrote:
> 
> > On Mi, 03 iul 19, 21:03:19, Gene Heskett wrote:
> > > On Wednesday 03 July 2019 16:12:31 Reco wrote:
> > >
> > > And Gene moved. Question unanswered yet.

Some of us are still working every day to earn that paycheck at the end
of the month, you know ;)


> > > > On Wed, Jul 03, 2019 at 02:57:35PM -0400, Gene Heskett wrote:
> > > > > Regardless of what I do, I cannot get rid of the avahi junk in
> > > > > an ip a report, so my local 192.168.xx.nn/24 net is the only
> > > > > thing that works. pinging a net name like yahoo.com gets me a
> > > > > successful address. But no response from yahoo because its
> > > > > sending the ping from an avahi based address, which since thats
> > > > > outside of my /24 netmask, doesn't get thru the router.
> > > > >
> > > > > So, how do I get rid of the avahi stuff?
> > > > >
> > > > > I've a nominally 10 machine 192.168.nn.xx that is 100% static
> > > > > based on host files so I want avahi absolutely and totally
> > > > > neutered, emasculated, gone Forever plus 100 years at least.
...
> pi@picnc:~ $ cat /etc/network/interfaces.d/*
> auto eth0
> 
> iface eth0 inet static
> address 192.168.71.12/24
> gateway 192.168.71.1
> post-up echo 1 > /proc/sysy/ipv6/conf/$IFACE/disable_ipv6
> 

> > ip r # short for 'ip route'
> pi@picnc:~ $ ip r
> default dev eth0 scope link src 169.254.163.253 metric 202
> 169.254.0.0/16 dev eth0 scope link src 169.254.163.253 metric 202
> 192.168.71.0/24 dev eth0 proto kernel scope link src 192.168.71.12

These caught my attention.
What about this trick (metric is 1024 unless you define it, and default
route with lower metric wins):

auto eth0
	iface eth0 inet static
	address 192.168.71.12/24
	gateway 192.168.71.1
	metric 64
	post-up echo 1 > /proc/sysy/ipv6/conf/$IFACE/disable_ipv6

There's also another dirty trick:

mkdir /etc/systemd/system/avahi-daemon.service.d
cat > /etc/systemd/system/avahi-daemon.service.d/override.conf <<EOF
[Service]
PrivateNetwork=yes
EOF
systemctl daemon-reload
systemctl restart avahi-daemon

I'd also consider exterminating avahi with extreme prejudice, i.e. 'apt
purge avahi-daemon'. Really simplifies things. Not installing this
software in the first place works even better.

Reco


Reply to: