LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 11-13-2008, 02:46 PM   #1
JMCraig
Member
 
Registered: Feb 2003
Location: Utah, USA
Distribution: Red Hat EL, Fedora, Debian
Posts: 100
Thanked: 0
Xen and the art of IP address assignment--missing something simple?


[Log in to get rid of this advertisement]
Hi Folks,

I've been beating my head against the wall with Xen and trying to get a paravirtualized RHEL 5.2 sitting on a RHEL 5.2 host (should be easy to get it talking on the LAN, no?).

The guest domain (dom1 for the purposes of this conversation) is operating--but, no matter what networking setup I've tried, I can not see dom1 from my LAN (I'd like to see its web server; can't even ssh to it). Latest attempt follows pattern described here:
http://albertptobey.blogspot.com/200...etworking.html

I've also tried following the patterns here (including the forwarding info, which I did not fully understand, but didn't work--at least not as I attempted to do it--hard to be confident you did it right when you're not clear on the whys and wherfores):
http://wiki.xensource.com/xenwiki/XenNetworking

What I want is really simple:

2 NICs (machine actually has 3: eth0 not connected/configured; eth1 & eth2 connected to switch)

Code:
Physical NICs
eth1      192.168.1.129      traffic to/from host RHEL system
                             -- all works; web server is visible to LAN
                             -- visible to Internet via firewall/router forwarding

eth2      (no IP)            supposedly bridged to the guest paravirtualized RHEL dom1's eth0
                             -- IP not assigned as per Albert Tobey's blogspot.com posting
                             -- want to get to the the web server on dom1 from LAN; doesn't work
                                (not sure how it could w/ no IP--unclear on why left w/o IP)
                             -- some configurations (w/ IP assigned) have allowed outbound/return pings
                             -- never found a setup that allowed inbound traffic to dom1 services

Bridge    Interfaces         unsure if this is running right in current configuration
br2       vif2.0             -- ifconfig shows RX packets, but zero TX packets
          eth2.1

On dom1 VM
eth0      192.168.2.130      -- Note this is not on the LAN (192.168.1.x) but on 192.168.2.x subnet
                             -- Albert Tobey's explanation does not mention how to assign IP
                             -- ifconfig shows TX packets, but zero RX packets
                             -- not sure if this is hooked to the bridge's 
                                vif2.0 interface
The bridge method for connecting physical and virtual NICs is supposed to be simplest and quickest, so that's what I've been trying. I've tried the default setup with the dom1 eth0 device (bridged to eth2) getting its IP via dhcp (which ends up being on the 192.168.122.0 subnet--this is not ideal so I just picked an IP; didn't seem to matter either way). I've tried using the default bridge that Xen creates (xenbr0) and specifying different names, and, in this last round [Albert Tobey's method], defining the bridge and just referring to it).

In the most hopeful combinations of settings I've tried, I can see "out" if you will from dom1 and ping IPs on the Internet. But, I can't see into dom1 from the LAN; no web server visible; no SSH connection possible. Traffic to the 192.168.1.130 (eth2) address doesn't get to the dom1 guest, as far as I can tell.

Should I be using the routing method rather than bridging?

Should I do something with iptables? Disable iptables?

Do I need to do something special with the assignment of the IP address to dom1's eth0 device? (I just picked a sort of random address--I want to avoid DHCP, if possible, because I end up with two competing DHCP servers on the net if dom0 is running DHCP services.)

Do I need to do something special with the assignment of the IP address to eth2?

Suggestions gratefully accepted!
JMCraig is offline  
Tag This Post , ,
Reply With Quote
Old 11-20-2008, 12:54 PM   #2
merize147
Member
 
Registered: Oct 2004
Location: Where ever I put down Lappie
Distribution: Dragged kicking and screaming to RHEL
Posts: 132
Thanked: 0
1) is ip_forward set to 1? (/proc/sys/net/ipv4/ip_forward)

2) Have you tried allowing all traffic via iptables?

3) if you ping from the VM to a external address (not the host) are you seeing the request and replying to it? What about in the reverse direction?
merize147 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Citrix Systems' Simon Crosby: Xen and the Art of Cloud Computing LXer Syndicated Linux News 0 08-12-2008 09:50 PM
LXer: Running Xen a Hands-On guide to the Art of Virtualization LXer Syndicated Linux News 0 05-03-2008 07:50 AM
Ip address assignment in kernel modules geniuspraju Linux - Kernel 0 11-06-2006 02:58 AM
Assignment of IP-Address santosh_pn Linux - Software 4 06-16-2005 12:22 PM
IP address assignment n3tw0rk Linux - Networking 1 01-05-2004 01:23 AM


All times are GMT -5. The time now is 08:04 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration