LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-12-2005, 05:59 AM   #1
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Rep: Reputation: 15
Multiple gateway + Multiple DHCPD


hello forum !
any configuration to manage multiple gateway in dhcpd scope
e.g

ddns-update-style interim;
dynamic-bootp-lease-length 86400;
max-lease-time 604800;
default-lease-time 604800;

subnet 10.10.1.0 netmask 255.255.255.0 {
option routers 10.10.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.1.255;
option nis-domain "xxx.com";
option domain-name "xxx.com";
option domain-name-servers 10.10.1.1;
option time-offset -18000;
authoritative;
option ntp-servers 10.10.1.1;
option netbios-name-servers 10.10.1.1;
option netbios-node-type 2;
range 10.10.1.40 10.10.1.254; }

this configuration apply client gateway 10.10.1.1 now i have client to fix using mac binding to select different


host servolinx {
next-server dhcp;
hardware ethernet 00:C0:26:783:03;
fixed-address 10.10.1.10;


gateway allocate to this mac 10.10.1.2 is this posible ? please right down script
 
Old 12-12-2005, 03:13 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
the 10.10.1.2 address may still be valid in the dhcpd.leases file

It is probably in /var/lib/dhcp/dhcpd.leases
but check in man dhcpd.leases to be sure..
 
Old 12-12-2005, 11:51 PM   #3
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by peter_robb
the 10.10.1.2 address may still be valid in the dhcpd.leases file

It is probably in /var/lib/dhcp/dhcpd.leases
but check in man dhcpd.leases to be sure..
thx for reply 10.10.1.2 are another linux internet gateway machine e.g

LINUX 1
10.10.1.1 ip
xx.xx.xx.xx isp gateway


LINUX 2
10.10.1.2 ip
xx.xx.xx.xx isp gateway

Client 1
10.10.1.4 ip
10.10.1.1 gateway

Client 2
10.10.1.5 ip
10.10.1.2 gateway


now tell me how to manage both gateway using DHCPD service like:-
client 1 select gateway 1 and client 2 select gateway 2

thx in advance
 
Old 12-13-2005, 05:07 AM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
If you create two scopes in the same subnet do they get used in a round-robin fashion? or there may be an option for this.
 
Old 12-13-2005, 05:12 AM   #5
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by baldy3105
If you create two scopes in the same subnet do they get used in a round-robin fashion? or there may be an option for this.
actully in 10.10.1.1 linux box machine are selected ports open like web , ftp , ssh .etc etc and 10.10.1.2 linux machine are all ports MASQUERADE so thats why i need to manage client gateway from dhcpd scope
 
Old 12-13-2005, 06:02 AM   #6
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
so you want to use different gateways to reach different destination ip addresses?
 
Old 12-13-2005, 07:16 AM   #7
abakali
Member
 
Registered: Dec 2005
Location: karachi
Distribution: RedHat
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by baldy3105
so you want to use different gateways to reach different destination ip addresses?
yes dude any solution
 
Old 12-13-2005, 11:45 AM   #8
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
point all your hosts at one default gateway via DHCP. Put routes onto the default gateway for the destinations available via the alternate gateway. Any traffic to the alternate destinations will get redirected by the DG to the alternate GW.
 
Old 12-14-2005, 09:09 AM   #9
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
See man dhcpd.conf
Add a "router" specification for each MAC address to set it's own gateway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd on multiple ethernet interfaces Jestrik Linux - Networking 10 10-03-2011 09:40 AM
Multiple provider gateway netboy Linux - Networking 1 11-21-2005 06:55 PM
How to get dhcpd.conf to support multiple ISP routers? spadesmaster Linux - Networking 5 09-22-2005 01:18 PM
multiple webservers one gateway? phonecian Linux - Networking 4 03-11-2005 11:10 AM
DHCPd for multiple interfaces Noerr Linux - Networking 2 02-07-2003 06:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration