Re: bridging to multiple ip addresses.

Glenn Enright <[email protected]> Wed, 7 Dec 2011 11:32:35 +1300
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <CAN7jt23Fqqq1P0jDWe52t7T29GBww+zH7yUh6GmUdPaUF9hpdQ@mail.gmail.com>
Apologies, in the light of a new day my initial comment looks a bit
off. I hope the links there prove useful to you

On 6 December 2011 18:19, Steve Holdoway <[email protected]> wrote:
> I'm pretty certain it won't be hard, and I'm not trying to be clever.
> It's just that I've never done this before!
>
> Cheers,
>
> Steve
> On Tue, 2011-12-06 at 17:57 +1300, Glenn Enright wrote:
>> 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). =A0eg with kvm in the xml file for each vm you would
>> see something like the following per nic you needed
>>
>> =A0 =A0 <interface type=3D'bridge'>
>> =A0 =A0 =A0 <mac address=3D'00:11:22:33:44:55'/>
>> =A0 =A0 =A0 <source bridge=3D'br0'/>
>> =A0 =A0 </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? Nattin=
g?
>>
>> ref also https://help.ubuntu.com/community/KVM/Networking#Using%20multip=
le%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 leve=
l
>> > 2 loops and other similar instances of certain fatality.
>> >
>> > Is it just as simple as setting up network definitions for br0, br1, b=
r2
>> > with the specific IP addresses, all bridging to eth0?
>> >
>> > Any decent documentation on how to do this would be gratefully receive=
d.
>> >
>> > 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
>
> --
> 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