Find the answer to your Linux question:
Results 1 to 5 of 5
hello everybody, i wish someone could help me setting a router on my debian box. i need to set it, because i obtained 2 static IPs from my ISP, one ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    6

    Setting a debian router

    hello everybody,
    i wish someone could help me setting a router on my debian box.

    i need to set it, because i obtained 2 static IPs from my ISP, one for the router (which is D-Link 500T) and another for the box, i have 4 other boxes which i need to connect them to the web, so my plan for the network is like this :

    box 1, box 2, box 3, box 4 > switch > debian box > router > internet

    boxes one to 4 are connected to a switch which is connected to eth1 in my debian box, then the debian box is connected to the router and the router is connected to the internet.

    in brief the 4 boxes access the internet through 1 IP of the debian box.

    can any one help please???

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Location
    under the bridge
    Posts
    14

    Debian server...

    Hi...

    1.- The easiest thing would be setting up a dhcp-server in your debian box(Server), to assign IP-addresses automatically...
    2.- ¿Do you know how to configure dhcpd?
    3.- In your dhcp-server on the debian box, just add the routers option, and fill it wiht your router IP-address..
    4.- This way your clients-stations will gather their network configuration from the server and this last one will also gave to your clients-stations the gateway to scape...

  3. #3
    Linux Newbie
    Join Date
    Aug 2006
    Posts
    107
    Can I ask why you are doing it this way? The Dlink should be all you need, along with the switch if you need it. Is their a special purpose for the debian box?

    To use debian as a router for the four other machines you would need to install the ipmasq package. Then either use static ip addresses or setup a DHCP server of some type.

  4. #4
    Just Joined!
    Join Date
    Nov 2006
    Posts
    6
    Quote Originally Posted by shawoho
    Hi...

    1.- The easiest thing would be setting up a dhcp-server in your debian box(Server), to assign IP-addresses automatically...
    2.- ¿Do you know how to configure dhcpd?
    3.- In your dhcp-server on the debian box, just add the routers option, and fill it wiht your router IP-address..
    4.- This way your clients-stations will gather their network configuration from the server and this last one will also gave to your clients-stations the gateway to scape...
    thx man
    actually i installed a dhcp server, configured it for an ip range as u said, then i setup iptables to forward from interface eth1 on my box to interface eth0, took too much to work :d, but finally it did.

    Quote Originally Posted by deanlinkous
    Can I ask why you are doing it this way? The Dlink should be all you need, along with the switch if you need it. Is their a special purpose for the debian box?

    To use debian as a router for the four other machines you would need to install the ipmasq package. Then either use static ip addresses or setup a DHCP server of some type.

    well my ISP provides me with 2 static ips only, and inorder to access the internet i must be using one of them for the box, since i have 5 boxes and access the web through a Dlink router(which is assigned one of the 2 ips), i can only access the web from one box (the debian one, which is also a webserver).

    but anyway thanks as i said i worked it our using the same idea you gave me

  5. #5
    Just Joined!
    Join Date
    Nov 2006
    Location
    under the bridge
    Posts
    14
    Good.... you're welcome.... Maintain your configuration files well documented and make a copy of them for reinstallation cases...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •