Let’s say that I have 1 network card and 2 blocks /24 of IP to assign:
150.50.50.0/24 150.60.60.0/24
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?
Answer
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
address 150.50.50.0/32
iface dummy0 inet static
address 150.50.50.1/32
…
iface dummy0 inet static
address 150.50.50.255/32
Attribution
Source : Link , Question Author : user3746280 , Answer Author : MikeyB