Loading
Home ›
Virtual Interfaces: When One IP Isn't Enough
Trending Topics
| Dia - The Diagram Creation Tool | Feb 13, 2012 |
| You Need A Budget | Feb 10, 2012 |
| The Linux powered LAN Gaming House | Feb 08, 2012 |
| Creating a vDSO: the Colonel's Other Chicken | Feb 06, 2012 |
| Your CMS Is Not Your Web Site | Feb 01, 2012 |
| Casper, the Friendly (and Persistent) Ghost | Jan 31, 2012 |
- Dia
2 hours 21 min ago - Service units, is a daemon
3 hours 56 min ago - Tcp
4 hours 16 min ago - Lamenting more development of Dia
10 hours 8 min ago - multiboot that works well for me
19 hours 59 min ago - What's a good, AFFORDABLE aka
20 hours 10 sec ago - Employment Posters
1 day 11 hours ago - Sure the best distro is
1 day 12 hours ago - BeOS was the best
1 day 15 hours ago - I use Wireshark on a daily
1 day 19 hours ago





Comments
this isn't virtual interfaces
This isn't virtual interfaces. This is aliasing a network interface. To set up a virtual interface you use the vconfig command and/or use notation like eth0.5 instead of eth0:5. With virtual interfaces, packets are tagged differently for each network whereas with aliasing of an interface, the interface itself is just advertising two different IP addresses.
Possible uses
The first possible use that comes to mind is the need to bring up a temporary server while rebuilding or moving a dedicated server. For example, you want/need to move a web server, or any server really, to a new facility. To minimize downtime, you could copy your website to a temporary box with a virtual interface using the original IP address, until the original server is relocated. Then you would remove the virtual interface and bring up the IP address on the original server. There are many other uses: NAT/Firewall, Proxy, Web Filter, running multiple FTP/Web servers off the same box.
Yeah, this stoped working two months later. Can you clarify?
Seems that ifupdown no longer supports virtual interfaces. ifconfig does, but ip can't operate on them, though it shows them. The interfaces content you show in your example generates "duplicate interface" error from ifup/down. What's the deal? I can't believe this was overlooked.
Useful uses
Great stuff, thanks. Can someone suggest possible uses?
awesome!
I didn't even know you could do this. Thanks for the tip!