Results 1 to 6 of 6

Thread: Debian as router/gateway/dhcp

  1. #1
    Join Date
    Jul 2006
    Posts
    128

    Debian as router/gateway/dhcp

    Hello,
    I am using router with the config of my debian. I have a station that should serve as a router / firewall for my LAN. and to the Internet. So I installed the base debian with kernel 2.4.20. and dhcp. I want to know about Debian as router/gateway/dhcp. I try to configure or reconfigure my internet connection (WiFi) but not succeeding. So thought that you guys might be helpful .!!
    "Every man is guilty of all the good he did not do". - Voltaire

  2. #2
    Join Date
    Feb 2008
    Posts
    2,635

    Re: Debian as router/gateway/dhcp

    If you have a debian or ubuntu yes. Gateway indeed corresponds to the bridge. For more info type :
    wireless man

    You can have a wireless ethernet interface eth0 and wlan0 both described in that file. Make sure that those are the names of your interfaces by typing in a console :
    / Sbin / ifconfig

  3. #3
    Join Date
    Feb 2008
    Posts
    130

    Re: Debian as router/gateway/dhcp

    If you choose this arrangement, the computer server will absolutely be on for pc1 and pc2 can go on the net. You can do this kind of configuration :
    I put pc1 and pc2 in two different subnets like that if one day you want to put a switch between your server and pc1 (or pc2) you can do it directly.
    • pc1: 192.168.1.1 default route
    • pc2: 192.168.2.1 default route

    Server :
    Assuming that the numbering of interfaces eth follow what I put on my diagram:
    / Sbin / route add-net 192.168.1.0 netmask 255.255.255.0 dev eth1 / sbin / route add-net 192.168.2.0 netmask 255.255.255.0 dev eth2 / sbin / route add default gw 192.168.0.1 dev eth0 .
    After that he can no doubt you'll have to make a network bridge.
    Last edited by yuppicide; 25-04-2010 at 06:29 AM.

  4. #4
    Join Date
    Oct 2008
    Posts
    161

    Re: Debian as router/gateway/dhcp

    You will have to do the following things initially :
    • installation of cards
    • / sbin / route
    • make a bridge.

    Debian is already installed on the server, with a map eth0
    IP address 192.168.0.3
    mask 255.255.255.0
    Gateway: 192.168.0.254
    DNS: 212.27.32.176 212.27.32.177

  5. #5
    Join Date
    Jan 2006
    Posts
    3,792

    Re: Debian as router/gateway/dhcp

    It should crossover cables between two pcs, and a straight cable between your server and your freebox. The recent uncross switches which avoids having to ask the question, but it is a priori not the case with ethernet cards. For what is seen as the public ip freebox your router is supposed to do, there's just that it has a public ip (interface with the socket ADSL). Your server and the interface of the server side freebox have a local IP.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,339

    Re: Debian as router/gateway/dhcp

    In general way you want to do a NAT router and it works very well in Linux. To avoid that you get lost in irrelevant details (for example, question number between 192.168.0.3 and 192.168.0.1 it works with both if you are coherent overall) following the general principle :
    Router => two network cards:
    A public IP for Internet
    A private IP network, eg 192.168.1.1, mask = 255.255.255.0
    Any client PC: IP = 192.168.1.x with x = 2,3,4,5 ,.... mask = 255.255.255.0 and Gateway = 192.168.1.1 (private IP = router-PC).

Similar Threads

  1. DHCP Server - Allocating different gateway IP
    By Alvyn in forum Windows Server Help
    Replies: 6
    Last Post: 05-10-2010, 10:03 AM
  2. Replies: 6
    Last Post: 12-05-2010, 09:15 AM
  3. Can't connect gateway DHCP ADSL Modem using Windows 2008 DC
    By RamaHH in forum Networking & Security
    Replies: 1
    Last Post: 25-01-2010, 05:22 PM
  4. DHCP problem in wireless router
    By dalsandhu in forum Networking & Security
    Replies: 3
    Last Post: 02-10-2009, 11:56 AM
  5. How to configure a DHCP server on a router
    By Tanvir in forum Networking & Security
    Replies: 3
    Last Post: 27-04-2009, 08:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,663,904.80272 seconds with 17 queries