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 address 126.96.36.199/32 iface dummy0 inet static address 188.8.131.52/32 … iface dummy0 inet static address 184.108.40.206/32
Source : Link , Question Author : user3746280 , Answer Author : MikeyB