LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-15-2008, 09:42 AM   #1
Chrizzieej
Member
 
Registered: Jan 2007
Location: Netherlands, The
Posts: 51

Rep: Reputation: 15
DHCP-problem with internet


Hello,

I've got the following situation:
NIC0: is my internetconnection with a public IP-address, subnet, DNS-servers and a gateway from my provider.
NIC1: is my internal network and has IP-address 10.1.1.1.

I've got DHCP3-server installed with the following settings:
Code:
ddns-update-style none;

option domain-name "mydomain.nl";
option domain-name-servers pdns-provider sdns-provider;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 10.1.1.0 netmask 255.255.255.0{
        range 10.1.1.100 10.1.1.110;
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.1.1.255;
        option routers 10.1.1.1;
pdns-provider and sdns-provider are the DNS IP-adresses offcourse.

But the problem is, when my clients got an IP-address, they cannot connect to the internet. Clients get all the correct settings through DHCP but it doesn't work. IP-forwarding is enabled.

Am I missing something? Please help.

Greetz Chrizzieej
 
Old 07-15-2008, 11:01 AM   #2
flitcraft33
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 4
First, let me say I am an OpenBSD guy, not a linux guy so my suggestions may well be way off base. Having said that, can you ping the ISP's name server or boundary device by IP address? If so, and you are unable to connect by browser, it is possibly a DNS issue. I see that you have identified name servers by name. This may result in an inability to find the name server and therefore anything else. Add the IP address of a name server to your resolver file on a workstation
 
Old 07-15-2008, 06:18 PM   #3
Chrizzieej
Member
 
Registered: Jan 2007
Location: Netherlands, The
Posts: 51

Original Poster
Rep: Reputation: 15
I cannot ping the ISP's nameservers or the IP-address from the first NIC!
 
Old 07-15-2008, 07:51 PM   #4
exkor5000
Member
 
Registered: Nov 2003
Distribution: Slackware
Posts: 51

Rep: Reputation: 16
Hi

First of try:
Code:
tracert 64.233.169.104
and see where the packets stop.
if they don't go beyond your linux router then the problem is with forwarding.

What is your exact setup?
how do you get connected to the ISP in the first place?
If there is a cable/dsl modem why don't you configure DHCP right there?

Best
 
Old 07-16-2008, 09:45 AM   #5
flitcraft33
LQ Newbie
 
Registered: Jul 2007
Posts: 5

Rep: Reputation: 4
You say that your clients get an IP address, so the issue here appears to be routing more than dhcp. What is in the routing table on your dual homed server? In OpenBSD I use netstat -nr but your mileage may vary. You are looking for the default route, or route to 0.0.0.0 (which means basically anywhere not otherwise shown in the route table). You want this route to be out the proper interface, which I guess is NIC0 (the one leading to the ISP). My guess is that the routing table does not have it set this way so packets are not leaving your local network. If I am correct you will need to use the route command to add a new route to 0.0.0.0 indicating that you want to use NIC0. man route should give you guidance here. You may also need to use the route command to delete any existing, incorrect route to 0.0.0.0 .

Good luck.
 
Old 07-19-2008, 10:17 AM   #6
Chrizzieej
Member
 
Registered: Jan 2007
Location: Netherlands, The
Posts: 51

Original Poster
Rep: Reputation: 15
Unhappy

I would explain the infrastructure to you guys:

eth0: ADSL-router (has 4 ports, with 4 public addresses, connected to port 1), this NIC has an static IP-adress (212.***.**.** with Subnet-mask 255.255.255.248), with the gateway and 2 DNS-servers of our ADSL-provider.
eth1: Has a static IP-address (10.1.1.1 with Subnet-mask 255.255.255.0) and is connected to a switch with all other clients.

My DHCP-server is configured as followed:
Code:
ddns-update-style none;

option domain-name "mydomain.nl";
option domain-name-servers pdns-provider sdns-provider;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 10.1.1.0 netmask 255.255.255.0{
        range 10.1.1.100 10.1.1.110;
        option subnet-mask 255.255.255.0;
        option broadcast-address 10.1.1.255;
        option routers 10.1.1.1;
I want clients with IP-addresses 10.1.1.100 till 10.1.1.110 to use the internetconnection through eth0.

I hope you can help me now!

Last edited by Chrizzieej; 07-21-2008 at 04:17 AM.
 
  


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
internet problem: Trouble configuring dhcp someguyonthestreet Linux - Networking 0 02-20-2007 10:49 PM
DHCP internet connection problem generic01 Linux - Newbie 14 08-06-2006 05:09 PM
dhcp and internet sharing connectin problem melinda_sayang Linux - Networking 5 11-05-2004 06:13 AM
pptp, dhcp, Internet problem. brynjarh Linux - Newbie 0 08-10-2004 05:05 PM
Internet Sharing & DHCP problem? Help! hakanicduygu Linux - Networking 4 01-25-2003 01:18 PM

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

All times are GMT -5. The time now is 10:32 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