Page 1 of 1

ifconfig not found on debian ?

Posted: Mon Jan 23, 2023 5:05 pm
by mister_v
ifconfig not found on debian ?
what happened here?
Even with root it doesn't work.

Code: Select all

debian-HP:~$ ifconfig
-bash: ifconfig: command not found

Re: ifconfig not found on debian ?

Posted: Mon Jan 23, 2023 7:18 pm
by Chris
You can use :

Code: Select all

ip address

Code: Select all

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
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 192.168.x.x/24 brd 192.168.x.x scope global dynamic noprefixroute enp4s0
       valid_lft 258960sec preferred_lft 258960sec
    inet6 xxxxx::xxxx:xx:xxxx:xxxx/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever

But if you prefer ifconfig, you need to install it:

Code: Select all

sudo apt install net-tools