[SOLVED] dnsmasq as dhcp server on eth0 and networkmanager [SOLVED]
i use fedora as a server and want it to use as router.
herefor i need dnsmasq to set up an dhcp server and /etc/init.d/dnsmasq restart says OK. my dnsmasq.conf looks like Code:
domain-needed Code:
sudo /etc/init.d/dnsmasq restart it shoud act as a dhcp only my first question is that my dnsserver is at 192.168.1.1 does it get thisone from resolv.conf than i have it configured correctly for that. i dont now how to forward thatone. but i still have NetworkManager running up eth0 and wlan for wlan connection howto send out dhcp dnsmasq to eth0 eth0 is still listening to dhcp and it should send dhcp???? howto configure thisone? thanks in advanced :) |
I'm not quite sure that I'm reading this correctly; let's start from the top:
I'm going to call the fedora box with dnsmasq running 'dhcp server'.
If you can answer these, as well as any other special setup on your network, I'll be in a better position to help. |
i have a fileserver wireless connected whit my dd-wrt router.
and i have my dekstop pc besides that. i cannot have my fileserver below becouse the people living here dont allow that, yes i need to move from a room to a house but enough of that.. i have a wireless connection to my fileserver and want a wired connection to my desktop from the fileserver. now i have connection sharing enabled on the fileserver and that works but i want to use dnsmasq to do it. from fileserver one router wireless, one desktop pc 1000mb wired. need an ip adress from dhcpserver. dhcpd or dnsmasq but my m8 said i best can use dnsmasq to do this. now you see i have dnsmasq running. but i don't get any ip adress from this, like i said i still have eth0 1000mb wired at dhcp client, asking for dhcp from my desktop and i can use internet connection sharing to do this, but i get a range of 10.42.43.* i want it to have a range of 192.168.2.* and than my router dd-wrt gives me 192.168.1.* |
1 Attachment(s)
Quote:
http://e1h13.simplecdn.net/lqcdn/ima...attach/pdf.gif So... here's how I'm reading this:
The wlan connection on Computer 2 seems to be correct. Undo any firewall/routing settings that you have set up for connection sharing on Computer 2. Set eth0 on Computer 2 with a static IP address of 192.168.2.1 Your dnsmasq.conf looks ok (it's actually configured better than mine). Once you've set the static IP address on eth0, release and renew your IP address on Computer 1. It should get an IP address of 192.168.2.100. After you have done this, you can set up IP Masquerading (which is what internet connection sharing is called under Linux/Unix). Instructions can be found here. |
yes thanks already for responding :)
|
R03L,
Take another look at my previous post, I added a lot more to it; I think that I may have found a solution. p.s. where does the nickname 'R03L' come from? It sounds a bit like R2-D2 or C-3PO :D |
Quote:
No My name is actualy Roel it's dutch ( frysian ) name. just added some numbers to it :P but verry thanks for helping me out,, i see wats mistaken. i read verry mutch tutorials and have the LPI book besides me. but the part of setting a static ip adress was missing from most tutorials. so i think that is wat im doing wrong. i should work on it today :) |
Quote:
Code:
eth0 so far so good :D |
when i ping www.google.nl or 192.168.1.1 @ my fileserver i get.
Code:
ping www.google.nl ( ping 192.168.1.1 ) i think its my routing/firewall that still is blocking my connection.. also when i am browzing to www.google.nl i get this pagefaulth Connection to server Refused |
ok i now get a ping at 192.168.1.1 ( DD-WRT )
but still Code:
ping www.google.nl |
Quote:
Code:
traceroute www.google.nl I would also try running /sbin/route on both your server and DD-WRT. Read the results from top to bottom, the first route that matches is the path that the packets take. |
By the way, if you absolutely totally have to know every packet going in and out of your DD-WRT, you can use pcap to capture packets. Installation of libpcap is detailed here, about half way down the page. I'm not 100% sure how to get the pcap file from the DD-WRT to your server, but once you do, you can open the file in Wireshark and figure out exactly what's going where.
I would do this only as a last resort, because it's going to take some serious reading to get this correctly installed and get a file back to your server, and then it can be a lot of work filtering through all of those packets, but you'll definitely know what's going on (also, only do this if you have isolated the problem to the DD-WRT). |
Code:
traceroute www.google.nl and no www.google.nl PAGE is coming up The requested URL could not be retrieved maybe im on QOS. becouse the house im living in a room at. also has a router outside the house my DD-WRT router is hooked to... its 10.0.0.138 (DHCP) i added some lines to DNSMASQ. Code:
server=192.168.1.1 (DD-WRT) |
DESKTOP PING
Code:
[roel@vlip ~]$ ping www.google.nl Code:
[server@server ~]$ ping www.google.nl |
Quote:
|
All times are GMT -5. The time now is 08:57 AM. |