Re: bridging to multiple ip addresses.
Glenn Enright <[email protected]> Tue, 6 Dec 2011 17:57:12 +1300
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <CAN7jt23TKk4Yu_Y5cKGqKpCNVY7jvHNR=S9DwfXKwXwQbpySsQ@mail.gmail.com> |
Should this be hard? Xen has been able to do this for a longish time,
eg setup a bridge per
http://wiki.solusvm.com/index.php/KVM_Network_Bridge_Setup then add
nic devices to the relevant vm definition pointing to that bridge (ie
bridge as a vlan). eg with kvm in the xml file for each vm you would
see something like the following per nic you needed
<interface type='bridge'>
<mac address='00:11:22:33:44:55'/>
<source bridge='br0'/>
</interface>
Then ips in the range supported by that bridge should just work on the
vm per traditional linux methods. This assumes you have public IPs to
allocate to each vm.
Or are you doing something interesting/weird with IP translation? Natting?
ref also https://help.ubuntu.com/community/KVM/Networking#Using%20multiple%20nics%20with%20multiple%20subnets%20i.e.%20vlans
On 6 December 2011 17:42, Steve Holdoway <[email protected]> wrote:
> Hi folks,
>
> I'm working on making more than one of my KVM virtual machines visible
> on separate IP addresses.
>
> I'm happy with an ethernet interface having multiple IP adresses, but am
> looking for decent documentation on how to do this for br0 instead, so
> that traffic over the bridge can be routed to different vms according to
> IP address.
>
> I try googling, but am instantly deluged with dire warnings about level
> 2 loops and other similar instances of certain fatality.
>
> Is it just as simple as setting up network definitions for br0, br1, br2
> with the specific IP addresses, all bridging to eth0?
>
> Any decent documentation on how to do this would be gratefully received.
>
> Cheers,
>
>
> Steve
> --
> Steve Holdoway BSc(Hons) MNZCS <[email protected]>
> http://www.greengecko.co.nz
> MSN: [email protected]
> Skype: sholdowa
>
> _______________________________________________
> NZLUG mailing list [email protected]
> http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
>
_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug