LinuxQuestions.org
Visit Jeremy's Blog.
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 08-20-2003, 05:06 PM   #1
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Rep: Reputation: 0
Red Hat 9 and LAN trouble


Hello everyone. I have just created a LAN in my room, With a Linux Red Hat 9 box, as well as a windows XP Professional box. In order to do this i had to buy a D-link 4 port router, and had that connect to my existing connection(that one is behind a hub). I am having trouble with the internet connection on the Linux box, but not on the Windows one. I can not veiw pages in a browser, or even connect to GAIM. I can ping major URLs through the Linux box, so I know that I have some sort of configuration problem. From what I have read, it seems to be a DNS configuration error. If anyone can help me with this program, that would be great. This is what my etc/resolv.conf file outputs:

: Generated by /sbin/dhcclient-script
nameserver 192.168.0.1
search localdomain

If any other information is needed, please tell me and I will give it as soon as possible. Thanks for taking the time to look at my problem.

Last edited by capetech; 08-20-2003 at 05:13 PM.
 
Old 08-20-2003, 05:17 PM   #2
rjnet
LQ Newbie
 
Registered: Aug 2003
Location: Denmark
Distribution: Redhat 9
Posts: 4

Rep: Reputation: 0
Hi Capetech.

I also have a network build with D-Links 704 router. What I can see out of your question here is that you might define a default gateway(Your routers ip-address) on your Redhat. the nameserver in your resolv.conf does not seem to be correct, it ought to be the one delivered form your ISP. If I am not totally wrong it looks like your D-Link routers ip-address.

Hopefully this is a little helpfull to you.
Best regards.
René Jensen
 
Old 08-20-2003, 06:15 PM   #3
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you for that information. You are correct in the fact that the DNS address I had was my router when it should not have been. I have a problem though, and that is that I am not sure which what the address should be there. Accourding to the ISP, the cable modem assignes Via DCHP, making it impossible to make this configuration. Any other ideas on this problem?
 
Old 08-21-2003, 04:24 AM   #4
rjnet
LQ Newbie
 
Registered: Aug 2003
Location: Denmark
Distribution: Redhat 9
Posts: 4

Rep: Reputation: 0
Hi again. To find your DNS ip-addresses delivered by your ISP try at your Windows workstation to do the following:

- Go to a dos command line
- Type ipconfig /all (This will give you the configuration of your NIC. And also the DNS ip from your ISP)

At your redhat 9 server do the following.

- Edit your /etc/resolv.conf by correcting the nameserver to your ISP's nameserver. You can type more nameserver entries if your ISP have got more than one DNS. Just go to a new line at enter nameserver xxx.xxx.xxx.xxx
- Concerning your gateway edit the file /etc/sysconfig/network at the Entry GATEWAY type in the ip-address of your router 192.168.0.1 here.
- reboot the Linux box.


I am pretty sure this will help you.
Best regards.
René

Last edited by rjnet; 08-21-2003 at 04:25 AM.
 
Old 08-21-2003, 01:42 PM   #5
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
That seems like that will solve my problem. I am currently at a LAN party, not with my linux box, so I cant try it right now. I will do that as soon as I get home, and will be sure to tell you the results. Thank you very much for your help, your are very informative. Wish me luck... :-p
 
Old 08-21-2003, 05:59 PM   #6
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Wow, this is getting to be a bigger problem then I thought it would be. Ok, here is the deal:

Here is what I got when I did ipconfig /all with my router:

Windows IP Configuration

Host Name . . . . . . . . . . . . : black-box
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Network Bridge:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : MAC Bridge Miniport
Physical Address. . . . . . . . . : 02-50-2C-06-D5-3C
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.0.101
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 192.168.0.1
Lease Obtained. . . . . . . . . . : Friday, August 22, 2003 5:02:44 AM
Lease Expires . . . . . . . . . . : Friday, August 29, 2003 5:02:44 AM

Oh course I knew that 192.168.0.1 was not the dns server ip I was looking for, so I restarted the box with not router in the middle, just the connection. These were the ips I got:

DNS1 - 63.240.76.19
DNS2 - 204.127.198.19
DHCP - 24.34.241.34
Gateway - 24.60.108.1

After that I configured the resolv.conf file to look like this

search ne2.client2.attbi.com
nameserver 63.240.76.19
nameserver 204.127.198.19

I then went to go look at the file "/etc/sysconfig/network", but there was no spot for "GATEWAY", so I did not edit it. Yesterday I was at the LAN, and had linux working, and the only difference I saw what when doing ipconfig /all, I didnt get the routers ip for DCHP and DNS address's.(I was behind a linksys router) I also talked to d-link support for 50 minutes, come to have them tell me that they dont answer questions about linux, and to try linuxnewbies.org. If anyone sees any problems, seeing how I have now posted all information I can, please tell me. Also, if you need any other information, just ask. Thanks again to everyone reading this...
 
Old 08-21-2003, 06:07 PM   #7
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Just wondering if you've got the red hat firewall on, Lokkit which generates the rules on Redhat 9 seems to cause this dns problem for a good few people

do as root

iptables --list

to see if you have any firewall rules set just in case
 
Old 08-21-2003, 06:17 PM   #8
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Wow...Ok you are the greatist. I never would have thought that the firewall was effecting the DNS settings, but that was the case. I disabled the redhat firewall, and I had full internet access. This would explain why I could ping and such low level things, but nothing more. Thank you soooo much. One more question, if I am not going to use the Redhat firewall, Do you have any suggestions for a 3erd party one?
 
Old 08-21-2003, 06:24 PM   #9
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
I've never used programs to generate rules just enter them myself so I can't really recommend any, however if you do a search through the forum they'll more than definitely be posts about it.

As soon as I see red hat 9 now and someone with this problem I think Lokkit.
 
Old 08-21-2003, 06:26 PM   #10
capetech
LQ Newbie
 
Registered: May 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you very much yet again. Thanks to everyone that read and helped with my problem....
 
  


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
Trouble with LAN between W2k and Red Hat necrotic Linux - Networking 2 06-18-2004 10:55 PM
Red Hat 9.0 and Asus A7N266-VM Lan michaelgamrat Linux - Distributions 3 09-19-2003 12:06 PM
Red Hat 8.0 and ASUS A7N266-VM/LAN/AA walkthru patpawlowski Linux - Distributions 5 05-09-2003 02:56 AM
how to configure red hat linux on lan amitwarke Linux - Networking 1 02-08-2003 08:07 AM
Crystal LAN CS8920 LAN Driver for Red Hat 8.0 potlamurali Linux - Networking 3 02-07-2003 01:49 AM

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

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