LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-29-2007, 12:46 PM   #1
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
setup dummy interface running DHCP and DNS for VM


Ok here is the story, I am running a xen kernel with xen 3.1 and a 2.6.18 kernel. I am running an existing windows installation from a hard drive. This is on a laptop, and I am attempting to get networking setup for the windows vm. If I connect my laptop via the ethernet port and set the appropriate netdev=eth1 in the xend setup the xen networking scripts work fine and I get networking for both the VM(domU) and the the dom0. But since this is a laptop I do not have it connected all the time via wired interface, as a test I changed the netdev to wlan0 and the bridge gets setup but then I lose all connectivity to the router, and cannot reconnect until reboot. Neither the dom0 or domU gets networking in this scenario, I think this has to do with the fact that I am using wpa_supplicant and ndiswrapper for my wireless card and since the bridge technically takes over the connection wpa_supplicant does not have direct access to the card anymore. So due to this, and also the realization that I want the domU and dom0 the have networking even when not connected to an actual network I decided to use a dummy interface as the netdev with dhcp, forwarding dns server, and NAT on this interface,basically making the dom0 a router for the domU. But I cannot get DHCP to start on the dummy interface, I have not tried DNS server yet, and I am unsure of how to set the appropriate iptables rules to NAT from dummy interface to the real active net interface. I do know that setting the IP information manually in the domU does not allow networking between the dummy interface and the domU. So does anyone have any idea how I can get this working? Below is the error I keep recieving for DHCP on the dummy interface.


Quote:
No subnet declaration for dummy0 (0.0.0.0).
Aug 28 12:08:01 sleeperdied dhcpd: ** Ignoring requests on dummy0. If this is not what
Aug 28 12:08:01 sleeperdied dhcpd: you want, please write a subnet declaration
Aug 28 12:08:01 sleeperdied dhcpd: in your dhcpd.conf file for the network segment
Aug 28 12:08:01 sleeperdied dhcpd: to which interface dummy0 is attached. **
Aug 28 12:08:01 sleeperdied dhcpd:
Aug 28 12:08:01 sleeperdied dhcpd:
Aug 28 12:08:01 sleeperdied dhcpd: Not configured to listen on any interfaces!
 
  


Reply



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
windows-style dns/dhcp server setup with dynamic updates fire.is.real Linux - Server 1 08-23-2007 11:00 PM
Dummy interface?? wtf?? DertyolBA$HTARD Linux - Networking 1 11-14-2004 10:01 AM
Apache running under DHCP system and no DNS? Xris718 Linux - General 8 10-09-2004 05:25 PM
how to setup a solaris 8 dhcp server to do dynamic dns updates smiller71 Solaris / OpenSolaris 0 04-02-2004 02:16 PM
DHCP is setup. Now, DNS before Samba?? itsjustme Linux - Networking 3 06-17-2003 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration