Author Topic: (ASK)How to set gateway if input internet is DHCP  (Read 5027 times)

lonthong2002

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
(ASK)How to set gateway if input internet is DHCP
« on: December 26, 2007, 07:29:17 pm »
I already test my Ebox with static ip for input internet...everything is workin normal...(except proxy problem)
now i try use DHCP config for input internet ( not use Ebox for dhcp server) but...input internet is dynamic ip ( not static)

i can,t set default gateway...because dhcp server is automatic config...:D

thanks for help...


tumba

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #1 on: December 26, 2007, 09:40:32 pm »
I have the same problem, I put a router between internet and de ebox, but I can`t do it in a direct way.
any one knows how????

lonthong2002

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #2 on: December 27, 2007, 04:25:08 am »
Let us wait Mr administrator solve this problem....:D

jabastien

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #3 on: July 01, 2008, 06:20:16 am »
I already test my Ebox with static ip for input internet...everything is workin normal...(except proxy problem)
now i try use DHCP config for input internet ( not use Ebox for dhcp server) but...input internet is dynamic ip ( not static)

i can,t set default gateway...because dhcp server is automatic config...:D

thanks for help...

administrator,

I have the same problem. My eBox is between a Wireless router (configured as wireless client) and a hub. I have the AP set to dynamicaly provice a fix ip to the eBox eth0. How can I set eth0 as gateway?
I searched the entire forum for a solution. Is this still unresolved?

Thank you.
Jabastien

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #4 on: July 06, 2008, 09:20:18 pm »
Sorry guys, we don't support this yet. There's a workaround though to bypass the check eBox does to see if the router is reachable. That's the problem as the interface is configured by dhcp, eBox doesn't know the assigned IP so when it checks to see if it's reacheable it complains.

If you want I can tell you what lines you have to change to bypass this.

jabastien

  • Zen Apprentice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #5 on: July 08, 2008, 07:51:24 pm »
Hello Javi,

Yes, I would like that piece of information. I'm willing to modify the code for that functionality.
It would be helpful to add a comment in the code just incase the module is changed after an update.

Thanks in advance,
Jabastien
Jabastien

homer

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #6 on: August 20, 2008, 01:47:38 pm »
Here's another guy asking for this, and not afraid to look at the code.

Having a cable modem (not a router) is a big reason to use eBox, and it's a big pity it can not handle gateways with dynamic IP. Nowadays most cable companies install that type of modem, and if you want to share the connection you only have 4 alternatives:

   a) buy an extra hardware router

   b) install IPCop or Smothwall on a spare PC

but if you want to use the router pc for another tasks, or you want a direct (not NATed) connection:

   c) take a degree in network protocols and mess with ipchains and all that

   d) ask eBox team to (or how-to) fix that stupid bug in overchecking the gw input


It's a big pity a few lines of code keep so many people away from that great software.

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #7 on: August 29, 2008, 10:45:47 am »
Guys let me know if this is your issue:

You have a network interface that is configured via DHCP but the DHCP server is not giving you a default gateway and you want to set it manually?

Sorry for not getting back to you earlier but I've been pretty busy with the new eBox release. Now I'm done with that, the window for new stuff is open, so feel free to ask :)

gestahlt

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #8 on: September 25, 2008, 08:00:22 am »
I suffer from the same issue.

I have a cablemodem which is connected to the NIC directly.
There is no way to setup a working static configuration.
I want to use my ubuntu box (with ebox as frontend) as a router.
Is that issue fixed or a workaround possible?

Ariel Antigua

  • Zen Apprentice
  • *
  • Posts: 22
  • Karma: +0/-0
    • View Profile
    • ariel's weblog
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #9 on: February 09, 2009, 03:19:09 pm »
 Looks like all the poster solved the problem or what?

last night i installed ebox to set up a dual wan gateway and found the same problem. no gateway if WAN is a DHCP client.


histerix

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #10 on: April 08, 2009, 02:54:14 am »
Guys let me know if this is your issue:

You have a network interface that is configured via DHCP but the DHCP server is not giving you a default gateway and you want to set it manually?

Sorry for not getting back to you earlier but I've been pretty busy with the new eBox release. Now I'm done with that, the window for new stuff is open, so feel free to ask :)

I'm also stuck with that situation...

I have a cable modem that gives my NIC a dynamic IP over DHCP...
I would like to setup my eBox as a router (wireless and wired) and forward the Internet to the rest of my house...

Could You please give us the workaround?

Thanks in advance :)

javi

  • Zen Hero
  • *****
  • Posts: 1042
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #11 on: April 10, 2009, 02:07:21 pm »
What's the problem exactly?

Sam Graf

  • Guest
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #12 on: April 10, 2009, 03:17:06 pm »
I have a cable modem that gives my NIC a dynamic IP over DHCP...
I would like to setup my eBox as a router (wireless and wired) and forward the Internet to the rest of my house...
This is possible without workarounds. I have two stock eBox 1.0 installations serving as routers for DSL connections. In one case I serve wirelessly with a WAP.

You have to have a minimum of two NICs installed to use an eBox as a router. One NIC is connected to the modem and designated as an external interface. That interface can use DHCP to get its address. The other can be managed by eBox's DHCP service and can be plugged into a switch. I don't know if a wireless card can be used to route wireless traffic (never tried), but as I mentioned, a WAP will work.

phat

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #13 on: August 10, 2009, 09:03:47 pm »
Same here :( Still no solution?

poundjd

  • Zen Warrior
  • ***
  • Posts: 243
  • Karma: +0/-0
  • To your own morals be true!
    • View Profile
Re: (ASK)How to set gateway if input internet is DHCP
« Reply #14 on: August 11, 2009, 02:53:15 pm »
Ok, I'm sourt of confussed,  I have a cable connection, my External IP is assigned by the Cable company using DHCP, and I assigne addresses in the House via DHCP to include all the DNS stuff.  My internal DHCP server assignes the the my internal IP of my gatway to all the internal IP's as both the Primary DNS, and Gateway.  It all works fine.  If I was not doing DHCP from the gateway box then that may be an issue.

So you guys with this problem are not useing the eBox as your Network Gateway? or you Not useing it to assigne IP via DHCP?

If that is the case then you have to manually input your DNS and Gateway in to your DHCP Server, or your systems directily.  My cable IP changes about once to twice a year, so if your's is similar then the work is not too bad.  I have over 20 systems in the house and use DHCP so that I don't go crazy....
-jeff
Jeffrey D. Pound, Sr.
CISSP
Still learning, hope to never stop!