:: Re: [DNG] Configuring ethernet port…
Pàgina inicial
Delete this message
Reply to this message
Autor: Joel Roth
Data:  
A: Gregory Nowak
CC: dng
Assumptes vells: Re: [DNG] Configuring ethernet port for IPv6
Assumpte: Re: [DNG] Configuring ethernet port for IPv6 - broken hardware revealed by dmesg
On Thu, Jan 27, 2022 at 04:38:37PM -0700, Gregory Nowak wrote:
> Hi Joel,
> redirecting back to the list.
>
>
> On Thu, Jan 27, 2022 at 12:44:55PM -1000, Joel Roth wrote:
> > Thank you for the response, Gregory.
> >
> > On Thu, Jan 27, 2022 at 03:33:01PM -0700, Gregory Nowak via Dng wrote:
> > > On Thu, Jan 27, 2022 at 11:37:52AM -1000, Joel Roth via Dng wrote:
> > > > It seems that my new router uses IPv6. Perhaps that means
> > > > the ISP does so as well.
> > >
> > > Just because a router uses IPv6, doesn't necessarily mean the ISP
> > > supports it.
> >
> > > > My problem is connecting via dhcp over ethernet. On IRC
> > > > I was advised to try
> > > >
> > > > ping ff02::1%eth1
> >
> > > Just to make sure, the interface connected to your router is in fact
> > > eth1, and not eth0, right?
> >
> > Yes, it's eth1.
> >
> > > > which fails to get a response, indicating IPv6 is not enabled in my client.
> > >
> > > Posting the actual output might help.
> >
> > Usually ping (with no options) periodically returns a line
> > with the time taken for the round trip. In this instance,
> > one line beginning with PING and nothing more.
> >
> > > > I tried setting "iface eth1 inet6 dhcp" in /etc/network/interfaces,
> > > > then "ifup eth1". This fails with
> > > >
> > > > no link-local IPv6 address for eth1
> > >
> > > Even if your interface isn't able to configure a global IPv6 address,
> > > it should still get a link local address starting with fe80.
> >
> > This is the problem. I don't have a link local address:
> >
> > $ ifconfig eth1
> > eth1: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
> >         ether 28:d2:44:1a:e0:ca  txqueuelen 1000  (Ethernet)
> >         RX packets 0  bytes 0 (0.0 B)
> >         RX errors 0  dropped 0  overruns 0  frame 0
> >         TX packets 0  bytes 0 (0.0 B)
> >         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> >         device interrupt 20  memory 0xf2500000-f2520000 

>
> You don't seem to have an IPv4 address, even for obtaining a dhcp
> lease. Is this what you expect? If not, then the problem would seem to
> be wider in scope than just IPv6.
>
> >
> > > Also, before modifying /etc/network/interfaces, I would advise doing
> > > ifdown eth1, modifying the file, and then ifup eth1. Instead of inet6
> > > dhcp, I would suggest:
> > >
> > > iface eth1 inet6 auto
> > >
> > > My understanding is this should use either dhcp6, or RA/NDP to
> > > configure it.
> >
> > > What does the following output:
> > >
> > > cat /proc/sys/net/ipv6/conf/all/disable_ipv6
> > > cat /proc/sys/net/ipv6/conf/default/disable_ipv6
> > > cat /proc/sys/net/ipv6/conf/eth1/disable_ipv6
> >
> > All zeroes.
> >
>
> Do you have network-manager or the like installed which could be
> trying to configure the interface on its own?
>
> Is there anything
> different in the dmesg(1) output for eth1 than for your other
> interfaces?


bingo:

[467072.085551] e1000e 0000:00:19.0 eth1: PHY Wakeup cause - Unicast Packet
[467072.902423] e1000e 0000:00:19.0 eth1: Hardware Error
[467081.122220] e1000e 0000:00:19.0 eth1: Hardware Error
[467089.669913] e1000e 0000:00:19.0 eth1: Hardware Error
[467090.624833] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[467097.725663] e1000e 0000:00:19.0 eth1: PHY Wakeup cause - Unicast Packet
[467098.549348] e1000e 0000:00:19.0 eth1: Hardware Error
[467243.278267] e1000e 0000:00:19.0 eth1: Hardware Error
[467243.588770] e1000e: eth1 NIC Link is Down
[467248.986061] e1000e 0000:00:19.0 eth1: Hardware Error
[467249.940380] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[467255.211266] e1000e 0000:00:19.0 eth1: Could not acquire PHY
[467255.211285] e1000e 0000:00:19.0 eth1: PHY Wakeup cause - Unicast Packet
[467255.918047] e1000e 0000:00:19.0 eth1: Hardware Error

This is a used Thinkpad pad, recently purchased.
Fortunately usb-ethernet adapters are easily available.

> Since ifconfig is depricated, what does:
>
> ip address show eth1
>
> give you?


2: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 28:d2:44:1a:e0:ca brd ff:ff:ff:ff:ff:ff


> What does:
>
> cat /proc/sys/net/ipv6/conf/eth1/autoconf


1

> output?
> Other than that, that's all I can think of at the moment.


Thanks, Greg, you've been very helpful.

--
Joel Roth