Jump to content

fon not reachable after doing ics tutorial


Recommended Posts

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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? ;)

Link to comment
Share on other sites

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.

 Share

  • Recently Browsing   0 members

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