ifconfig not found on debian ?

Post Reply
mister_v
Posts: 139
Joined: Sat Jun 20, 2009 5:42 pm

ifconfig not found on debian ?

Post 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
Chris
Site Admin
Posts: 129
Joined: Mon Jul 21, 2008 9:45 am
Location: Leuven, Belgium
Contact:

Re: ifconfig not found on debian ?

Post 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
Post Reply