LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2004, 05:37 AM   #16
mst700
Member
 
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Original Poster
Rep: Reputation: 15
Here are my three files hosts resolv and dhcpd


The follwing are my files:

/etc/hosts:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.1 PenguinGateway.geek.net PenguinGateway

/etc/dhcpd.conf:
ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option nis-domain "geek.net";
option domain-name "geek.net";
option domain-name-servers 192.168.0.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.0.1;
# option netbios-name-servers 192.168.0.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.0.10 192.168.0.199;
default-lease-time 86400;
max-lease-time 86400;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}


and /etc/resolv.conf:

search localdomain
nameserver 205.152.144.23
nameserver 205.152.37.23


I have had to disable all my network systems (dns and router/dhcp) to get my link box up on the internet. So I can make this post.
 
Old 07-18-2004, 06:58 AM   #17
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
Uhm, why do I see 4 different addresses for your nameserver?

option domain-name-servers 192.168.0.1;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
nameserver 205.152.144.23
nameserver 205.152.37.23

This might be just me... but if this computer is serving addresses all the computers that get one will only use 192.68.0.1 as their nameserver.

The computer you say is the nameserver will be running at the 207.x.x.x address which none of the others know about (how can they since they can't do a name lookup without a working nameserver)

Do you have a functional nameserver at 192.68.0.1?

Uhm, I can't think of other things but there have to be some. It seems like it works when you kill dhcp because it can then use the addresses in resolv.conf which are probably valid.
 
Old 07-19-2004, 12:41 PM   #18
mst700
Member
 
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Original Poster
Rep: Reputation: 15
That is the question.

Quote:
Uhm, why do I see 4 different addresses for your nameserver?

option domain-name-servers 192.168.0.1;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
nameserver 205.152.144.23
nameserver 205.152.37.23

This might be just me... but if this computer is serving addresses all the computers that get one will only use 192.68.0.1 as their nameserver.

The computer you say is the nameserver will be running at the 207.x.x.x address which none of the others know about (how can they since they can't do a name lookup without a working nameserver)

Do you have a functional nameserver at 192.68.0.1?

Uhm, I can't think of other things but there have to be some. It seems like it works when you kill dhcp because it can then use the addresses in resolv.conf which are probably valid.
OK, you got me. I haven't figured that part out yet. Can you advise me on what I should set up first and how (if not how, explain what I should be doing. I doesn't look like I have a clue what I am doing. I thought I did and that is could be the problem.) If you could explain what I need to do it would help. (i.e. set up nameserver) If I am to use my IP address as the ns IP I can do that, I just haven't ever set it up using linux before. I have setup NT servers but not this.
 
Old 07-19-2004, 01:02 PM   #19
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
Okay, from the looks of it I would change
"option domain-name-servers 192.168.0.1;" to
"option domain-name-servers 205.152.144.23, 205.152.37.23;"

I am pretty sure that these nameservers are working for you. These are probably the ones provided by your isp. That should make everything work until you setup your local nameserver -- if you really want to.

If you are going to setup a local nameserver at 192.168.0.1 which will be called ns you should change:
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}

to

host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 192.168.0.1;
}

You would not need to do this if your DHCP server ran on 192.168.0.1 since it would already know its own ip address from your setup when it boots.

Note: You do not need your own nameserver unless you are really having problems with getting hosts to figure out each other's names -- it is more work to setup than it would be to find an error on the host.

All you need to do is make sure /etc/hosts on each machine contains the names and ip addresses for every computer on the network... an example from mine (change numbers and everything as fits your network). There are really very few applications where you will want to setup your own nameserver and it is a lot harder than copying one file onto each machine ... as long as you only have a few machines.

::1 localhost
127.0.0.1 localhost
#
# RFC 1918 specifies that these networks are "internal".
# 10.0.0.0 10.255.255.255
# 172.16.0.0 172.31.255.255
# 192.168.0.0 192.168.255.255

172.23.23.1 route.foo.org route ybrickrd
172.23.23.2 host02.foo.org host02
172.23.23.3 host03.foo.org host03
 
Old 07-19-2004, 01:15 PM   #20
mst700
Member
 
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Original Poster
Rep: Reputation: 15
Talking DHCP is the life for me

Thanks for the assistance frob23, this is what I was missing in my understanding department. I was missing the critical data (I had no clue). I will set this up tonight when I get off of work. I plan on just running the dhcp and let my ISP provide the rest.
 
Old 07-19-2004, 05:54 PM   #21
skibum58
LQ Newbie
 
Registered: Jul 2004
Location: flatland
Distribution: Mandrake 10
Posts: 5

Rep: Reputation: 0
mst700 shows location as Ascension Island SAO. Many areas outside the US enjoyed large ISDN market penetration before onset of xDSL / Cable. I saw it happen in Germany.

You still see lots of areas with high concentration of ISDN and no other services to speak of. Maybe internet by satellite ?

Übernoob
 
Old 07-19-2004, 06:08 PM   #22
mst700
Member
 
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Original Poster
Rep: Reputation: 15
On Ascension Island, I use ISDN via satellite. We don't have any hard lines to this island, It is to remote.
 
Old 07-21-2004, 01:30 AM   #23
mst700
Member
 
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Original Poster
Rep: Reputation: 15
Lightbulb I finally connect

[I]I now connect to the internet when dhcpd is on./I]


The truth is my linux box (router/DHCPD) can connect to the internet and it also gives out dhcp's to all the systems, but the systems otheran than the linux box can't connect to the internet:

/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.1 penguingateway.geek.org penguingateway


/etc/dhcpd.conf

ddns-update-style interim;
#ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.1.1; (ip addr of the local linux box)
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.1;

# option nis-domain "geek.org";
# option domain-name "geek.org";
# option domain-name-servers 205.152.144.23, 205.152.37.23;
# option ip-forwarding off;
# option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.1.5 192.168.1.254;
default-lease-time 86400;
max-lease-time 86400;
# host penguingateway.geek.org {
# hardware ethernet 00:50:70:2A:2A:95;
# fixed-address 192.168.1.1;
# we want the nameserver to appear at a fixed address
host ns {
next-server penguingateway.geek.org; (my local linux box)
hardware ethernet 00:50:70:2A:2A:95;
fixed-address 192.168.1.1;
}
}

/etc/sysconfig/network

NETWORKING=yes
HOSTNAME=penguingateway.geek.org


/etc/resolv.conf

search geek.org
nameserver 205.152.144.23 (bellsouth DNS)
nameserver 205.152.37.23 (bellsouth DNS)

I am making very slow progress, I would like to make the linux box a ROUTER/DHCP server and Bellsouth (ISP) provide DNS information. I think I have all the information required? Please tell me were I went wrong and how to fix it?

route display:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
penguingateway. localhost.local 255.255.255.255 UGH 0 0 0 lo
d205-152-239-13 * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default d205-152-239-13 0.0.0.0 UG 0 0 0 ppp0



Should I go and set up IP_Masquerade? I down loaded a Howto.pdf on it, it looks like what I think I should be doing? Anyadvise?



Last edited by mst700; 07-21-2004 at 01:52 PM.
 
Old 07-22-2004, 10:02 PM   #24
mst700
Member
 
Registered: Jun 2004
Location: Ascension Island SAO
Distribution: FC2 2.6.8 Kernel, FreeBSD Unix, Gentoo 2004-2, WinXP SP2
Posts: 46

Original Poster
Rep: Reputation: 15
WOOT

All my troubles where solved by a simple script file called Firestarter Firewall. It fixed my bridging problem I didn't know I had. My problem was my ppp0(ISDN) connection and my eth0 (gateway/DHCP) connection weren't talking. Thanks for the script Firestart.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BRAND New How do i get stuff like LimeWire and IPodder on my computer? Featherlinuxguy Linux - Software 2 09-23-2005 11:29 PM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 03:08 PM
What computer stuff can I listen to while working out? sandboy6184 General 4 05-05-2004 10:12 PM
How can I compile stuff on one computer, and move it to another? kleptophobiac Slackware 6 09-07-2003 11:08 AM
naming your computer (hostname) sitrus Linux - General 4 09-07-2002 04:09 PM


All times are GMT -5. The time now is 03:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration