LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-08-2003, 12:23 PM   #1
Stoffer
LQ Newbie
 
Registered: Jun 2003
Location: Troy, NY.
Distribution: Redhat 8.0
Posts: 4

Rep: Reputation: 0
Question Newbie needs networking / internet help!!


I'm a newbie that just recently dual-booted my system with Redhat 8 and XP so I can learn Linux, since I'm a compsci major. OK, here's my current issue. I live at a fraternity house where we have a house network that connects to Roadrunner broadband internet, which runs through a router. When I first installed RH8, my internet worked fine here. I have a built-in wireless card in my laptop (IBM T30) so I had my wireless configured to use on campus. When I got back here my house wireless was slow and my landline didn't work at all. It wouldn't be able to resolve any hosts.

I don't really care too much about the wireless at the house, but I wanted to ask if anyone knew the network settings that RH8 defaults to, or any other way to fix this problem. Here are my current network settings:

Under DNS Tab (I'm using GNOME)
Hostname: localhost.localdomain
Primary DNS: 192.168.254.254
Secondary DNS: 128.113.28.67
Domain Name: dynamic.rpi.edu

Under Hosts Tab:
IP: 127.0.0.1
Name: localhost.localdomain
Aliases: localhost

Any help is GREATLY appreciated!
 
Old 06-08-2003, 04:39 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Open a terminal ( GNOME-console, KConsole, xterm ) whatever is handy and try to ping your primary DNS ip address. And then try your secondary DNS. More likely that not, you wont receive a response from either of these. In which case, type in
/sbin/ifconfig -a
to list all your interfaces and send us the output.

If you get a response from one of the DNSs, try to nslookup an internet hostname ( www.google.com ) and post what it says.

I
 
Old 06-08-2003, 07:34 PM   #3
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
I had an issue with RedHAt 8.0 when I first put it behind a router that was similar. I was supposed to use the routers internal IP as the DNS entry, and then it would forward all of the DNS requests. This worked finr on Windoze, but for some reason I could not resolve hosts under RedHat. I ended up manually adding my ISPs primary and secondary DNS IPs to my eth0 config, and it has worked like a charm ever since.

Just to clear this up a bit, you have 2 NICs? One wireless and one landline?

slight
 
Old 06-08-2003, 10:02 PM   #4
Stoffer
LQ Newbie
 
Registered: Jun 2003
Location: Troy, NY.
Distribution: Redhat 8.0
Posts: 4

Original Poster
Rep: Reputation: 0
Here's all the info that /sbin/ifconfig -a gave me:


[stoffer@localhost stoffer]$ /sbin/ifconfig -a
cipsec0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
BROADCAST MULTICAST MTU:1400 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:09:6B:50:40:BB
inet addr:192.168.1.168 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:252 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:32313 (31.5 Kb) TX bytes:8138 (7.9 Kb)
Interrupt:11 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9232 (9.0 Kb) TX bytes:9232 (9.0 Kb)

I also tried this: I ran ipconfig in windows, and it gave me the following:

Connection-Specific DNS Suffix: nycap.rr.com
IP Address: 192.168.1.168
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1

So what I went and did was I changed my Primary IP to 192.168.1.1 and my domain to nycap.rr.com, but that still didn't work, althought I can ping 192.168.1.1, my default gateway. What do I do from here?
 
Old 06-09-2003, 11:40 AM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Although you can ping your gateway, you need at least one valid DNS entry in your /etc/resolv.conf to enable hostname lookups. Usually, if the DHCP server that leases you an IP address supplies DNS settings which your startup scripts may automatically put in /etc/resolv.conf . If you're using fixed IPs, that feature is hopefully disabled.

But since you're not 'online' with linux yet, you're probably still on windos in which case you can
ipconfig /all
and fetch them from there and manually put it in /etc/resolv.conf .
 
Old 06-09-2003, 01:11 PM   #6
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
If he is behind a firewall, chances are that the DNS IP will be the IP of the router. I would suggest running nslookup and manually entering the ISP's DNS IP in the /etc/resolve.conf file (or you can do it through RedHat's nifty little GUI).

slight
 
Old 06-09-2003, 02:58 PM   #7
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by slightcrazed
If he is behind a firewall, chances are that the DNS IP will be the IP of the router.
You mean the gateway? It very well could be, but usually DNS is run off of its own box.
 
Old 06-09-2003, 03:45 PM   #8
shwabob
LQ Newbie
 
Registered: Jun 2003
Location: PH, Florida, USA
Distribution: Windows XP, 2000, Redhat 9
Posts: 15

Rep: Reputation: 0
i am having a similar problem. I am behind a linksys router connected to a cable connection. The linksys auto assigns IP's through DHCP. All of the computers in the house are connected via a Microsoft Workgroup (called 485W). I want to be able to have them see me through samba. How do i chage all this?
 
Old 06-09-2003, 04:09 PM   #9
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Quote:
Originally posted by slightcrazed
If he is behind a firewall, chances are that the DNS IP will be the IP of the router.
Wow.... did I actually write that? Must have been pre-coffee, cause I usually make more sense than that.

What I really meant to say was that most of the 'network in a box' routers out there work as a psuedo DNS caching only server, and assign their internal IP (also the DG) to clients for DNS resolutions. The router then acts as a forwarder and send the name resolution requests to whatever DNS was DCHP'd to its external interface from his ISP. RedHat, for some reason, does not like this, and (at least in my specific case) was forced to assign the actual IP of my ISP's DNS so that resolution could happen.

Gee, don't ya just love acronyms?

"Seeing as how the VP is a VIP, wouldn't it be wise to keep the VP's PC on the QT, otherwise he could wind up an MIA and then we'd all be put on KP." - Robin Williams, Good Morning Vietnam.

slight
 
Old 06-09-2003, 04:51 PM   #10
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by shwabob
i am having a similar problem. I am behind a linksys router connected to a cable connection. The linksys auto assigns IP's through DHCP. All of the computers in the house are connected via a Microsoft Workgroup (called 485W). I want to be able to have them see me through samba. How do i chage all this?
Are you running SAMBA yet? Check and see if your smb ( Netbios ) and nmb ( Netbios Name service ) daemons are running. As long as you the rest of the boxes are within your network/subnet , whether you are behind a router /switch/hub shouldn't matter. Change your workgroup name to 485W in your /etc/samba/smb.conf .
 
Old 06-09-2003, 05:06 PM   #11
shwabob
LQ Newbie
 
Registered: Jun 2003
Location: PH, Florida, USA
Distribution: Windows XP, 2000, Redhat 9
Posts: 15

Rep: Reputation: 0
yeah...got samba running fine. i just want to figure out how i can change the name of my linux machine from 'localhost' to 'deepblue'...then I think I am starting to get there...
 
Old 06-10-2003, 12:17 PM   #12
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Change your hostname in /etc/sysconfig/network and add and entry for it in /etc/hosts ( keep the localhost entry )
 
Old 06-10-2003, 02:32 PM   #13
Stoffer
LQ Newbie
 
Registered: Jun 2003
Location: Troy, NY.
Distribution: Redhat 8.0
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks guys, I got it to work. What I did was find the DNS IP's from my provider and plug those in, but I got them from a friend who also uses RoadRunner, so I can't really tell you how I got them. Thanks again for the help!h
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Newbie Networking rmsat Linux - Networking 2 06-29-2004 04:26 PM
Networking Newbie Nice Guy Eddie Linux - Networking 6 05-17-2003 07:01 AM
Networking Newbie Nice Guy Eddie Linux - Networking 1 05-04-2003 01:35 AM
Networking newbie lolmc Linux - Networking 3 12-29-2001 07:58 AM
Newbie Networking!!! GeeMoney Linux - Networking 2 11-25-2001 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:20 AM.

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