512 IP in one NIC – ubuntu – is this possible? [closed]

Let’s say that I have 1 network card and 2 blocks /24 of IP to assign:

I know, that I can only add 256 virtual interfaces to each NIC from http://www.liberiangeek.net/2012/04/create-virtual-network-adapters-in-ubuntu-12-04-precise-pangolin/

How I can add 2 blocks to same NIC?
Should I use VLAN?


than setting another VLAN and adding to it virtual interfaces

Sorry dude, this shows you have no idea what you’re talking about. Why in the world do you want this anyways?

Are those networks routed to you? Or directly attached? It matters – you’ll configure things differently.

Anyway assuming that the networks are routed to you, do something like this, not that eth0:0 nonsense.

auto dummy0
iface dummy0 inet static
    pre-up modprobe dummy
iface dummy0 inet static
iface dummy0 inet static

Source : Link , Question Author : user3746280 , Answer Author : MikeyB

Leave a Comment