Go Back   TechArena Community > Technology > Networking & Security
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Debian as router/gateway/dhcp

Networking & Security


Reply
 
Thread Tools Search this Thread
  #1  
Old 25-04-2010
Member
 
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
Reply With Quote
  #2  
Old 25-04-2010
Member
 
Join Date: Feb 2008
Posts: 2,630
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
Reply With Quote
  #3  
Old 25-04-2010
Member
 
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.
Reply With Quote
  #4  
Old 25-04-2010
Member
 
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
Reply With Quote
  #5  
Old 25-04-2010
Member
 
Join Date: Jan 2006
Posts: 3,772
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.
Reply With Quote
  #6  
Old 25-04-2010
Member
 
Join Date: Apr 2008
Posts: 3,342
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).
Reply With Quote
Reply

  TechArena Community > Technology > Networking & Security
Tags: , , , , , , , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Debian as router/gateway/dhcp"
Thread Thread Starter Forum Replies Last Post
DHCP Server - Allocating different gateway IP Alvyn Windows Server Help 6 05-10-2010 10:03 AM
Belkin Gateway 4 Port Router, PCs lose router assigned IP if not used daily Micmac Networking & Security 6 12-05-2010 09:15 AM
Can't connect gateway DHCP ADSL Modem using Windows 2008 DC RamaHH Networking & Security 1 25-01-2010 04:22 PM
DHCP problem in wireless router dalsandhu Networking & Security 3 02-10-2009 11:56 AM
How to configure a DHCP server on a router Tanvir Networking & Security 3 27-04-2009 08:01 PM


All times are GMT +5.5. The time now is 09:29 AM.