LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 04-27-2010, 09:31 AM   #1
l2g
Member
 
Registered: Feb 2004
Distribution: Red Hat 9, Slackware 9.1
Posts: 55

Rep: Reputation: 15
Cannot create xen network bridge. VM ip's are in the same subnet


Hi,
It's been a while since I last posted in LQ.. feels great to be back!

I have installed a Xen with 2 VM's inside. They are all under the same subnet.
The Xen machine can see the outside network but both machines in it cannot.
How do I create the bridge correctly (to xenbr0 i guess) so it fixes this?

Here's what I tried:
===========
It's RHEL5.3

1. '/etc/sysconfig/network-scripts/ifcfg-eth0' is ok on both VM's
2. iptables service is disabled, system-config-network shows IP,DNS, GW are correct.
3. On the VM's the route -n shows the gw ip though I cannot ping it.
4. checked hosts.allow, hosts.
5. In '/etc/xen/xend-config.sxp' unmarked:
(network-script network-bridge)
(vif-script vif-bridge)
6. in xen/<images_location>/ I modified vm.cfg so vif = [ 'ip=10.2.0.54' ] for one of my virtual machines.
7. I cannot however find '/etc/network/interfaces', can anyone advise if actually in my case it's the
ifcfg-eth0?


7. I basically followed the Bridged Networking scenario in Xen Networking: http://wiki.kartbuilding.net/index.php/Xen_Networking but to no avail yet.


I'll be happy to post any info, let me know.

Ifconfig on the Xen Parent:
-----------
[root@XEN_PARENT]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:8B:3A:E4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:130021 errors:0 dropped:0 overruns:0 frame:0
TX packets:75097 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10315149 (9.8 MiB) TX bytes:12038346 (11.4 MiB)
Interrupt:17 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:127 errors:0 dropped:0 overruns:0 frame:0
TX packets:127 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18162 (17.7 KiB) TX bytes:18162 (17.7 KiB)

vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:83 errors:0 dropped:0 overruns:0 frame:0
TX packets:73422 errors:0 dropped:266 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:9868 (9.6 KiB) TX bytes:6378453 (6.0 MiB)

vif3.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:350 errors:0 dropped:0 overruns:0 frame:0
TX packets:44129 errors:0 dropped:341 overruns:0 carrier:0
collisions:0 txqueuelen:32
RX bytes:27754 (27.1 KiB) TX bytes:3818085 (3.6 MiB)

xenbr0 Link encap:Ethernet HWaddr 00:50:56:8B:3A:E4
inet addr:10.2.0.52 Bcast:0.0.0.0 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:130303 errors:0 dropped:0 overruns:0 frame:0
TX packets:74569 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8526828 (8.1 MiB) TX bytes:11982125 (11.4 MiB)

-----------------------------------



Any help will be greatly appreciated.

Thanks,
Liron
 
Old 04-28-2010, 09:42 AM   #2
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
On the VM's the route -n shows the gw ip though I cannot ping it.
Fix this, and you've resolved the problem.

This link should help:
http://wiki.xensource.com/xenwiki/XenNetworking

Pay particular attention to "vif-route".

Also this link:
http://www.debian-administration.org/articles/360

Note the "vif" entry in all applicable /etc/xen/* configuration files.

'Hope that helps .. PSM

Last edited by paulsm4; 04-28-2010 at 09:47 AM.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Lenny + Xen Network Bridge Problems wmrwl Linux - Networking 0 09-25-2009 12:30 PM
squid+bridge+2 subnet - My network Dia inside mpbraj Linux - Software 1 10-07-2007 05:35 PM
xen om network bridge with wlan0 scheidel21 Linux - Wireless Networking 0 08-27-2007 09:59 PM
Cannot create Network Bridge between LAN and WEB Hunza Linux - Networking 4 05-12-2004 01:58 AM
class c subnet ip's acid_kewpie General 1 03-12-2002 06:39 AM


All times are GMT -5. The time now is 09:16 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