You are not logged in.

#1 2009-03-26 01:43:41

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Fake Network Interface - What Is It, and How Do I Get It?

I'm in the process of setting up Linux-VServer, which supports OS level virtualization. It's like running a VM, only instead of using an abstraction layer to create fake hardware and host another OS, the kernel just runs multiple userspaces and makes sure they don't touch anything they're not supposed to.
Anyway, like many VM solutions, networking is a bit funky. They create fake interfaces that seem to exist only in the kernel, then use iptables to mask them with NAT so it still works on a network. The trick is that I'm not sure how they're creating fake interfaces, so I don't know how to replicate it on Arch. Here's a page describing the process: http://linux-vserver.org/Networking_vserver_guests

On Debian, they add this to /etc/network/interfaces:

auto dummy0
iface dummy0 inet static
    address 192.168.1.250
    netmask 255.255.255.0

What are they using to make this work? Is there a good way to replicate it under Arch?

Last edited by arew264 (2009-03-26 03:18:19)

Offline

#2 2009-03-26 03:12:07

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: Fake Network Interface - What Is It, and How Do I Get It?

I ran `ip addr add 192.168.1.4/24 dev eth0 label eth0:1`, which adds an IP address to eth0.
This works better than the solution the vserver wiki recommends because I can give the guest a public IP address.

Is there a way to do this in /etc/rc.conf or the network daemon?

Last edited by arew264 (2009-03-26 03:18:51)

Offline

Board footer

Powered by FluxBB