Jump to content

Recommended Posts

Posted

ok. i am reflashing my fon for the 3rd time right now and i cant get the ics tutorial to work with my fon and eee-pc.

i am doing exactly what is written in the tut but after doing the dhcp step in webif and then rebooting the fon, it remains unreachable.

i think the fon then waits for an adress on boot, which it cant get right..

did anyone try a way to remain on static ip and use a gateway manually?

//edit: what i already tried is sshing in and

route add default gw 192.168.0.20

192.168.0.20 is my eees wired interface which gets internet through firestartes connection sharing (SHOULD)

Posted

are you using windows or linux as the donor machine?

when you say "it remains unreachable" what do you mean, I thought you meant the fon but then you say you can connect to it.

Posted
ok. i am reflashing my fon for the 3rd time right now and i cant get the ics tutorial to work with my fon and eee-pc.

i am doing exactly what is written in the tut but after doing the dhcp step in webif and then rebooting the fon, it remains unreachable.

i think the fon then waits for an adress on boot, which it cant get right..

did anyone try a way to remain on static ip and use a gateway manually?

//edit: what i already tried is sshing in and

route add default gw 192.168.0.20

192.168.0.20 is my eees wired interface which gets internet through firestartes connection sharing (SHOULD)

You should not have to reflash the fon. It is waiting for a dhcp server. After you set it to dhcp it no longer has a static ip. Use tftpd in windows and you will see it get an ip and you can connect and take it out of dhcp and set it back to static.

Posted

hi, sorry for confusing.

i cant actually ssh in.. i can only connect to the "openwrt" wifi. but cant find the ip from the router.

i am using linux as the donor pc.. the connection is shared via firestarter with dhcp3 server.

Posted

when you connect to openwrt, do you get an ip address given out from it?

You have a dhcp server running on your pc, try running wireshark and listening to see if you get any dhcp requests coming from the fon, either on wired or wireless. I've never thought about brining up an AP but then having that try to get an IP address from one of its clients, it may be possible but don't know for definite.

Posted
when you connect to openwrt, do you get an ip address given out from it?

You have a dhcp server running on your pc, try running wireshark and listening to see if you get any dhcp requests coming from the fon, either on wired or wireless. I've never thought about brining up an AP but then having that try to get an IP address from one of its clients, it may be possible but don't know for definite.

thats not the thing anymore.. i reflashed the fon and i got static ip again.

now, is there a way to remain on static? i.e. adding the nameservers to resolv.conf and route add default gw?

what would the default gw be then? it should be the ip adress bound to the ethernet interface wired to the fon right?

//EDIT:

Alright i got it working... more or less..

i set up masquerading which is ics for linux. the mark gets an ip adress from the dhcp server on my eee.

after setting the default gw and adding the nameservers from opendns.org i can ping google from my fon.

i cant ping google on the marks pc. i CAN ping googles ip from the marks pc.

so the problem now is, that i dont deliver a valid dns server to the marks pc.

any ideas on this?

//EDIT 2: I GOT IT!

you have to redirect the dns requests. this isnt done with adding the dns to resolv.conf. you have to edit the /etc/dnsmasq.conf and add the following line:

dhcp-option=6,X1X.X1X.X1X.X1X,X2X.X2X.X2X.X2X

where X1X is the first dns server and X2X the second one. perhaps the servers from opendns? ;)

Posted

Glad its working. I always find it good when you work something out yourself, generally makes it a lot easier to troubleshoot next time.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...