Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-20-2003, 05:06 PM
|
#1
|
LQ Newbie
Registered: May 2003
Posts: 13
Rep:
|
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.
|
|
|
08-20-2003, 05:17 PM
|
#2
|
LQ Newbie
Registered: Aug 2003
Location: Denmark
Distribution: Redhat 9
Posts: 4
Rep:
|
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
|
|
|
08-20-2003, 06:15 PM
|
#3
|
LQ Newbie
Registered: May 2003
Posts: 13
Original Poster
Rep:
|
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?
|
|
|
08-21-2003, 04:24 AM
|
#4
|
LQ Newbie
Registered: Aug 2003
Location: Denmark
Distribution: Redhat 9
Posts: 4
Rep:
|
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.
|
|
|
08-21-2003, 01:42 PM
|
#5
|
LQ Newbie
Registered: May 2003
Posts: 13
Original Poster
Rep:
|
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
|
|
|
08-21-2003, 05:59 PM
|
#6
|
LQ Newbie
Registered: May 2003
Posts: 13
Original Poster
Rep:
|
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...
|
|
|
08-21-2003, 06:07 PM
|
#7
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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
|
|
|
08-21-2003, 06:17 PM
|
#8
|
LQ Newbie
Registered: May 2003
Posts: 13
Original Poster
Rep:
|
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?
|
|
|
08-21-2003, 06:24 PM
|
#9
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
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.
|
|
|
08-21-2003, 06:26 PM
|
#10
|
LQ Newbie
Registered: May 2003
Posts: 13
Original Poster
Rep:
|
Thank you very much yet again. Thanks to everyone that read and helped with my problem....
|
|
|
All times are GMT -5. The time now is 07:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|