Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #182299

Re: Stretch--no network interfaces

From Christian Seiler <christian@iwakd.de>
Newsgroups linux.debian.user
Subject Re: Stretch--no network interfaces
Date 2017-06-18 21:00 +0200
Message-ID <tTNAt-mz-7@gated-at.bofh.it> (permalink)
References <tTMEq-8ff-7@gated-at.bofh.it> <tTMEq-8ff-11@gated-at.bofh.it> <tTNqO-j7-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/18/2017 08:25 PM, pplaw wrote:
> The network I'm on at the moment hands out DHCP addresses.  But, sometimes,
> I'll hard-code the IP address for the computer (with ifconfig:  ifconfig 
> (eth0--but in this case) enx687f74158a8a 10.x.x.x netmask 255.255.255.0;
> route add default gw 10.x.x.x).  Since this is a new install of Stretch,
> I haven't been able to download the ifconfig package; and if I type ifup
> enx687f74158a8a (or for my wireless card, wlp1s0), I get:  "unknown in-
> terface.

In the Debian release notes there's a section about the fact that
ifconfig has been deprecated for well over a decade now, and is not
included in new installs anymore starting with Stretch:

https://www.debian.org/releases/stretch/amd64/release-notes/ch-information.en.html#iproute2

If you want to temporarily add an IP to a given interface, you can
use the 'ip' utility (this also works in older Debian versions):

ip link set $DEVICE up
ip addr add 10.x.x.x/24 dev $DEVICE
ip route add default via 10.x.x.y

The question why 'ifup' doesn't work in your case: 'ifup' is only
a tool that is used in conjunction with /etc/network/interfaces
(or /etc/network/interfaces.d/*). So in order for ifup to work,
you need to create an entry in /etc/network/interfaces for your
network interface, for example:

auto enx687f74158a8a
iface enx687f74158a8a inet static
   address 10.x.x.x/24
   gateway 10.x.x.y

And then you can do 'ifup enx687f74158a8a'. (And in that case
the interface will also be configured when the system is rebooted.)

(The 'ifup' part is also the same in older Debian versions.)

Regards,
Christian

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Stretch--no network interfaces pplaw <pplaw@pcisys.net> - 2017-06-18 20:00 +0200
  Re: Stretch--no network interfaces Teemu Likonen <tlikonen@iki.fi> - 2017-06-18 20:00 +0200
    Re: Stretch--no network interfaces pplaw <pplaw@pcisys.net> - 2017-06-18 20:50 +0200
      Re: Stretch--no network interfaces Christian Seiler <christian@iwakd.de> - 2017-06-18 21:00 +0200
        Re: Stretch--no network interfaces Brian <ad44@cityscape.co.uk> - 2017-06-18 21:30 +0200
          Re: Stretch--no network interfaces Christian Seiler <christian@iwakd.de> - 2017-06-18 21:40 +0200
            Re: Stretch--no network interfaces Brian <ad44@cityscape.co.uk> - 2017-06-18 21:50 +0200
              Re: Stretch--no network interfaces Nicolas George <george@nsup.org> - 2017-06-18 22:00 +0200
                Re: Stretch--no network interfaces Brian <ad44@cityscape.co.uk> - 2017-06-18 22:30 +0200
                Re: Stretch--no network interfaces Felix Miata <mrmazda@earthlink.net> - 2017-06-18 23:20 +0200
                Re: Stretch--no network interfaces Brian <ad44@cityscape.co.uk> - 2017-06-19 00:20 +0200
          Re: Stretch--no network interfaces Fungi4All <fungilife@protonmail.com> - 2017-06-18 21:50 +0200
        Resolved [was Re: Stretch--no network interfaces] pplaw <pplaw@pcisys.net> - 2017-06-18 22:00 +0200
          Re: Resolved [was Re: Stretch--no network interfaces] Brian <ad44@cityscape.co.uk> - 2017-06-18 23:00 +0200
      Re: Stretch--no network interfaces Brian <ad44@cityscape.co.uk> - 2017-06-18 21:20 +0200
    Re: Stretch--no network interfaces pplaw <pplaw@pcisys.net> - 2017-06-18 22:00 +0200

csiph-web