Thursday, 1 November 2018

I am living in the past - missing ifconfig on Ubuntu

I've just rolled a new VM comprising Ubuntu 18.10, ready to build a Docker/Jenkins/Maven/Git/Liberty PoC environment.

First thing I did was to check my IP address: -

ifconfig

Command 'ifconfig' not found, but can be installed with:

sudo apt install net-tools


Ewwwww :-(

This helped: -



so I tried that: -

ip address show

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: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:2a:65:d1 brd ff:ff:ff:ff:ff:ff
    inet 192.168.153.131/24 brd 192.168.153.255 scope global dynamic noprefixroute ens33
       valid_lft 1793sec preferred_lft 1793sec
    inet6 fe80::a101:3792:6392:ec9c/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever


I then dived back into the past: -

sudo apt install net-tools

[sudo] password for hayd: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
  net-tools
0 to upgrade, 1 to newly install, 0 to remove and 5 not to upgrade.
Need to get 197 kB of archives.
After this operation, 811 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu cosmic/main amd64 net-tools amd64 1.60+git20161116.90da8a0-2ubuntu1 [197 kB]
Fetched 197 kB in 0s (1,454 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 133345 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20161116.90da8a0-2ubuntu1_amd64.deb ...
Unpacking net-tools (1.60+git20161116.90da8a0-2ubuntu1) ...
Processing triggers for man-db (2.8.4-2) ...
Setting up net-tools (1.60+git20161116.90da8a0-2ubuntu1) ...

and now I'm back there: -

ifconfig -a

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.153.131  netmask 255.255.255.0  broadcast 192.168.153.255
        inet6 fe80::a101:3792:6392:ec9c  prefixlen 64  scopeid 0x20<link>
        ether 00:0c:29:2a:65:d1  txqueuelen 1000  (Ethernet)
        RX packets 5522  bytes 6355504 (6.3 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2406  bytes 252125 (252.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 328  bytes 24805 (24.8 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 328  bytes 24805 (24.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Good to be back !!!

No comments:

Reminder - installing podman and skopeo on Ubuntu 22.04

This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman  and skopeo  on an Ubuntu box: - lsb_rel...