ifconfig not showing all IPs bound to the machine

Posted by pankaj sharma on Ask Ubuntu See other posts from Ask Ubuntu or by pankaj sharma
Published on 2012-12-10T09:11:16Z Indexed on 2012/12/10 11:24 UTC
Read the original article Hit count: 267

Filed under:
|

I have configured multiple IP addresses on a ubuntu box, but when I run ifconfig it shows just one of them. I am able, however, to ping all other adresses assigned to this machine.

/etc/network/interface contents:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static

     address 192.168.202.11

     netmask 255.255.255.0

     network 192.168.202.0

     broadcast 192.168.202.255

     gateway 192.168.202.1

# dns-* options are implemented by the resolvconf package, if installed

        dns-search idil.dz1.da

auto eth0:1

iface eth0:1 inet static

     address 192.168.202.12

        netmask 255.255.255.0

auto eth0:2


iface eth0:2 inet static

     address 192.168.202.13

        netmask 255.255.255.0

auto eth0:3

iface eth0:3 inet static

     address 192.168.202.14

        netmask 255.255.255.0


auto eth0:4

iface eth0:4 inet static

     address 192.168.202.15

        netmask 255.255.255.0

auto eth0:5

iface eth0:5 inet static

     address 192.168.202.16

        netmask 255.255.255.0

but the output of the ifconfig is only:

192.168.202.11

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about server