1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is possible to get several ips by dhcp in one interface?

Discussion in 'Networking Issues' started by chesko, Feb 3, 2006.

  1. chesko

    chesko Network Guru Member

    my idea is to get 2 or 3 ips from my cable modem (motorola surfboard 4100) by dhcp, all of them in the same interface: my outside interface. And then make static NAT to the computers of my inside interface.

    Is this possible with a WRT54GL? I don't know if a dhcp server can assing different ips to the single mac address of the outside interface.

    I know in expensive cisco products you can define subinterfaces in the same interface, and each subinterface can have its own ip and mac address, but i supose that is too much for a 70$ router :grin:

    If this is not possible, any suggestion that gets a similar network working with a WRT54GL?
     
  2. Guyfromhe

    Guyfromhe Network Guru Member

    i'm pretty sure it'll only request one IP via DHCP per interface, if you can get statics you should be able to assign all the ips to the WAN interface and do your routing from there...
     
  3. chesko

    chesko Network Guru Member

    i think i cannot get static ips, but thanks for your reply :D
     
  4. Guyfromhe

    Guyfromhe Network Guru Member

    you could try using DHCPC on a subinterface or have each of the WANs into their own interface with the VLAN switch, but it would get kind of complicated and you wouldn't have enough ports so youd need to do trunking...
     
  5. chesko

    chesko Network Guru Member

    yes, i was thinking of using two interfaces as wan interfaces. But i don't understand what you said about de VLAN switch (i booked a WRT54GL in the store but i still don't have it). Can you explain this a bit more?
    Thanks a lot.

    P.S: i think i have enough free interfaces for my needs now, so the trunking is not neccesary yet :)
     
  6. Guyfromhe

    Guyfromhe Network Guru Member

    If your using 3 of your 5 ports as WAN ports, you can only plug in 2 computers, unless 1 computer is going to have more than one ip...
    you'll have to wait till I get home from work before I can detail how to actually do this, it's a bit long...
    unless someone has a better idea :p
     
  7. chesko

    chesko Network Guru Member

    haha, thanks a lot in advance. I plan to use only two ports as wan ports, that will do the job (I hope).
     

Share This Page