LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-11-2010, 10:26 AM   #1
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Rep: Reputation: 15
setting up a bridge with 3 static IPs and two VM


Hi all,

I've been reading for days now, but can't find an example to the following. I have an ubuntu server, with two KVM virtual machines running ubuntu jeos. I want each VM to have it's own static IP, plus one IP for the server.

How on earth I do that? do I need to create two bridges, one for each machine? and if so, how do I assign static IP to each? I would greatly appreciate any hint.

Best regards.
 
Old 08-12-2010, 07:06 AM   #2
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
Here is an example of the interfaces file for one bridge:

Quote:
auto lo
iface lo inet loopback

auto br0
iface br0 inet static
address 192.168.0.10
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
now, let's say the IP of my machine is 85.17.200.20, how do change the file? why at every example I see the same 192.168.0.1 address? I'm sorry if this too stupid, but well, I'm a newbie in this networks things. Have always used dhcp and never cared about IP addresses.
After that, how do I configure three IPs ?

anyone?
 
Old 08-14-2010, 04:16 AM   #3
jbcolmena
Member
 
Registered: Feb 2004
Location: Italy
Distribution: Ubuntu
Posts: 40

Original Poster
Rep: Reputation: 15
All I had to do was:
-set ONE bridge as shown in the ubuntu documentation.
-setting the static IP and all other network variables when creating the machines.

and that's it. Guess was just confused because all the examples I found where related to dhcp and not static IPs.

Best regards
 
  


Reply

Tags
bridge, virtual machine


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using static IPs with wpa_supplicant jgombos Debian 6 08-23-2009 12:35 PM
DSL and static IPs Cara25 Linux - Networking 5 10-27-2007 04:19 PM
2WIRE need bridge for static lan ips gjmwalsh Linux - Networking 5 06-27-2007 07:48 AM
Problem with static IPs Outerlimit Linux - Networking 2 02-15-2006 03:35 PM
setting up radvd with static local ips pIscIs Linux - Networking 0 12-13-2005 03:48 PM


All times are GMT -5. The time now is 08:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration