LinuxQuestions.org
Help answer threads with 0 replies.
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 09-22-2004, 06:45 PM   #1
deice
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian testing/sarge
Posts: 6

Rep: Reputation: 0
dhcrelay problem


i have the following configuration:

[ISP gateway/dhcp server] <==(adsl)===> [my linux router] <==(private lan)==> [other machines, some servers, some desktops]

the linux router routes traffic from the private lan to the internet and back.
now i'd like the machines in the lan to have public ip's, which are supplied by the isp's dhcp server. this way i could drop NAT:ing traffic and have all machines "directly" connected to the internet.

the router's ip address is also dhcp configured.

but i can't get dhcrelay to work.

tcpdump port bootpc and port bootps

on both interfaces has shown me that the router receives an dhcp request from a windows machine on the lan, and transmits it to the isp's dhcp server. however i never see a reply from the isp's dhcp server to the router.
could this be because the incoming dhcp request looks like

ip addresses src: 0.0.0.0 dst: 255.255.255.255

and the relayd dhcp request looks like:

ip addresses src: router_public_ip destination: isp_gateway_ip_address

and the isp's dhcp server is dropping the request because of this?
can anyone think of another reason why it doesn't work ?

thanks

//deice
// an intermediate linux network administrator
 
Old 09-23-2004, 02:36 AM   #2
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
Are you sure your ISP provides you with public IPs for your LAN machines ? Otherwise (which is usually the case, considering the cost of fixed IP ranges), its dhcp server simply is not allowed to issue another IP to your router.
 
Old 09-23-2004, 12:00 PM   #3
deice
LQ Newbie
 
Registered: Sep 2004
Distribution: Debian testing/sarge
Posts: 6

Original Poster
Rep: Reputation: 0
>Are you sure your ISP provides you with public IPs for your LAN machines ? Otherwise (which is usually the case, considering the cost of fixed
>IP ranges), its dhcp server simply is not allowed to issue another IP to your router.

i am quite sure, first, because the contract clearly states i have 5 public ip addresses via dhcp.
and second, because i had this system running with bridging, and that worked perfectly. all the machines were getting public ips via the linux bridge from the isp's dhcp server and everything worked quite fine.

but i want to switch to a routing setup so i can use all traffic shaping and other advanced features, and to isolate some machines from the internet with NAT and permit others full access. and simply as a learning exercise

//deice
// an intermediate linux network administrator
 
  


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
RedHat 8.0 - dhcrelay, ip forwarding not working klnasveschuk Linux - Networking 1 12-04-2003 07:40 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

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

All times are GMT -5. The time now is 11:03 PM.

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