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

Re: Need current Debian _specific_ HOWTO for vnstat



On Thu, Oct 16, 2025 at 4:19 PM Richard Owlett <rowlett@access.net> wrote:
>
> On 10/16/25 10:36 AM, Andy Smith wrote:
> >
> > On Thu, Oct 16, 2025 at 10:11:46AM -0500, Richard Owlett wrote:
> >> All the instructions I've seen depend on device naming conventions that
> >> Debian has not used since Stretch.
> >> [ See https://wiki.debian.org/NetworkConfiguration which says:
> >>    > Since Stretch, old-style interface names (eth0, wlan1 etc.) have
> >>    > been replaced by names based on hardware location (enp0s31f6,
> >>    > wlp1s7 etc.). For USB dongles, these can even include the MAC
> >>    > address: enx2c56ac39ec0d).
> >> ]
> >
> > Are you getting concerned because you're reading something that says
> > "eth0" when you don't have an eth0 interface?
> >
> > If so, I think you're being a bit too picky because the entire thing
> > with predictable network device names means that some third party
> > documentation writer CAN'T guess what yours will be and so has to just
> > use a stand-in like "eth0" or "en0".
> >
> > You can get a list of YOUR network interfaces by opening a terminal and
> > typing:
> >
> > $ ip link show
> >
> > It'll be one that's not "lo". If you see multiple and aren't sure, look
> > what your default route is.
> >
> > $ ip route show
> >
> > $ ip route show
> > default via 192.168.1.1 dev wlan0 proto dhcp src 192.168.1.193 metric 600
> > 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.193 metric 600
> >
> > It'll be the one that starts "default via…". So in the example above my
> > default route goes through network interface "wlan0".
> >
> > Whatever yours ends up being, it should be that every time (again, the
> > point of predictable network device names), so just use that.
> >
> > Probably ther entire rest of whatever guide you are reading will be
> > relevant.
>
> On my machine I get
>
> > richard@debian12:~$ ip link show
> > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
> >     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> > 2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
> >     link/ether 5c:26:0a:35:91:9f brd ff:ff:ff:ff:ff:ff
> >     altname enp0s25
> > 3: wlp2s0b1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
> >     link/ether e6:ae:b5:94:25:ed brd ff:ff:ff:ff:ff:ff permaddr 5c:ac:4c:15:2a:30
> > 74: enxce36b5aed86e: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
> >     link/ether ce:36:b5:ae:d8:6e brd ff:ff:ff:ff:ff:ff
>
> I don't see any "default via…" !
> What now?

Sigh... Andy gave the command `ip route show`, not the command you typed.

Jeff


Reply to: