LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Newbie.....needing some help... (https://www.linuxquestions.org/questions/linux-general-1/newbie-needing-some-help-64846/)

jwyant 06-10-2003 05:11 PM

Newbie.....needing some help...
 
Ok...so i got RH9 up and running flawlessly.....pretty simple install to be honest...but now it seems this is were the "Fun" starts...

I am majorly confused on the following items:

1. Shell prompt.....I understand how to get to a DOS prompt in Windows.....have no idea here.

2. I cant get my system to surf the web. DHCP is running on a Win2K Server...but the system is not pulling any info! I tried setting it up on a static address but still nothing.

Well i guess we can start with these.....I have tons of questions...but if I can get on the internet, I can view all the docs on the ne RH9 system, and not have to go between my XP machine and my linux box!!!

TIA!

fancypiper 06-10-2003 05:20 PM

A couple of suggestions. One post, one question, and a subject that is specific to that question. I have to spend my time seeing that someone asked more than one question, and I spend more time editing than giving answers (slow dialup).

Quote:

1. Shell prompt.....I understand how to get to a DOS prompt in Windows.....have no idea here
Open an x terminal or press ctrl-alt-F3 (can be F1 through F6, F7 is the X session)

Using a Windows box to serve Linux. :scratch: Something sounds backwards here. :scratch: Does your nose run and your feet smell? :p

Here is the Redhat 9.0 Network Configuration documentation. HTH

# Redhat links
RedHat Linux Manuals
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
RedHat 8.0 Tips & Tricks

# Redhat 7.3 down configuration commands
setup leads to several configuration tools

# Redhat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network

jwyant 06-10-2003 05:27 PM

Well..i have 30 WinX machine here in my corporate office....so windows rules but the numbers....

I went back and re-created a new connection, and now the device wont get out of inactive status....

fancypiper 06-10-2003 05:29 PM

Gotta get you working then, so you can make a server to protect those vulnerable networked OS which was never designed for secure networking. You may be about to lose it all at any moment. I see your problem now. :D

Try taking it down and bringing it back up

ifdown eth0
ifup eth0

(I think)

jwyant 06-10-2003 05:34 PM

nope......

nothing.

I am restarting the computer....still i can not get it be ACTIVE!

I am duplicating the settings (ip, DNS, subn, etc) of a win machine that works....

fancypiper 06-10-2003 05:40 PM

I think when I installed Redhat 9.0 (I reverted back to 7.3 as I found it buggy and didn't want to take the time to fix it) I saw nautilus start up with a "start here" that had some sort of networking wizard that may be easier to use, but I am used to my hand configuring. I don't have your version installed and your network, so I can's give specific settings, etc. Redhat changed it too much and removed lots of command line tools in 9.0 that I like to use with 7.3.

Browse through that "start here" and see if you may find the settings easier to configure that way.

jwyant 06-10-2003 05:44 PM

well..i got it activated......yea!

not for the surfing part....

If it does not browse the web....and its activate...what areas should i look into?

fancypiper 06-10-2003 06:07 PM

Windows doesn't do the nameserving?

Try putting your ISPs dns numbers in /etc/resolv.conf Here is my file for a reference:
Code:

domain infoave.net
nameserver 206.74.254.2
nameserver 204.116.57.2

You might put the Windows server IP in as well if it is running a nameserver.

jwyant 06-11-2003 09:07 AM

Tried all of this...still nothing....WOW...this linux box is really Fun! NOT!

Here are the configs taken from a Machine (win2kpro) that is on a static ip scheme, that surfs just fine on my network:

IP: 192.168.1.73
Subn: 255.255.255.0
Gate: 192.168.1.1
DNS: 207.155.183.72 and 207.155.183.73

That is it!!!!

I am running DNS inside my office for the DHCP clients to use...when a machine is on DHCP, the DNS reads 192.168.1.111 (server ip address)

This is getting very discouraging...i cant even get the simple things done in this software.

I have tried setting it up to be a DHCP client....and it is not pulling and ip info....does it matter that the DHCP server is a Windows 2k Server?

Is it normal to have the log in screen to say "Welcome to LocalHost"? When i go to log in...it says it could not lookup internet address for localhost.... What is all this?



AHHH!

Help!

fancypiper 06-11-2003 10:12 AM

Post your /etc/hosts file and /etc/hostname file. Try checking the hosts file in Windows for the stuff you need.

If you don't have /etc/hostname, create it and put just one line in it, the name of the Linux box.

DHCP mini-HOWTO

fancypiper 06-11-2003 10:14 AM

Another idea:

If you are running a firewall on the Linux box, disable it and see if you can connect. That may not be configured yet.

MArgRes 06-11-2003 11:15 AM

Don't give up!!!
 
Patience, young padawan. :)
Things are different in Linux when you're used to Windows machines. But, once you get the hang of it, you'll be addicted.

First, you HAVE to get to the command prompt. Click on the 'redhat' logo (where the start menu is in Windows) and go up until you get to 'System Tools', there should be a blue icon in there towards the bottom called 'Terminal'. That's the one you want. I don't know why they just didn't put it as an icon on the taskbar, but they didn't. :) Open up a couple of them.

Next, it sounds like you haven't set your hostname yet, since it is saying 'Welcome to Localhost'.

The easiest way to configure all of this stuff is by running 'redhat-config-network' (as root). (You can also get ther by clicking Redhat->System-Settings->Network). Click the DNS tab and enter the hostname of your machine, if you haven't already. If you haven't put in your DNS servers and the DNS search path, put those in there too. Next, click the 'Hosts' tab. You should have an entry that says '127.0.0.1 localhost.localdomain localhost'. DON'T REMOVE IT!!! That has to be there for good reasons. Go back to the 'Devices' tab and select the 'eth0' device and click on 'Edit'. I believe the settings to select DHCP are in there. Make sure that is selected. Once you've done all of that, 'Apply/OK' it all.

Now see if your computer is talking to the network at all. As root, type in 'ifconfig'. It will list all of your network adapter settings (including the loopback interface). Does eth0 have an ip address that would have been assigned from the DHCP server? If so, then things are good. Try pinging another computer ip on your network. If not, then something is messed up in your settings and we'll go from there.

You might want to check out Redhat's docs while you're doing this all as it walks you through it pretty well.

Let's start there. Let me know what things look like and I'll try to help you figure it out.

jwyant 06-11-2003 12:23 PM

Marg,

Thank for all the tips. I went to verify the host tab under network configs, and there was no 127.xxxx entry...I might have messed with it last night....trying to learn! :)

Anyway, I decided to reload the system with the software...and on the walkthrough...i did see the Hostname box...I just used LINUX9.....and enabled DHCP in the startup.

its almost done...i will verify all the setting in a few...and reply back!

Thanks

jwyant 06-11-2003 12:40 PM

Ok....reloaded and reconfigured the network......and....NO LUCK. BUT!

I can ping my windows machine.....and the nic card on the linux box (eth0) was assigned an ip address that is in the DHCP server. Now...when i open mozilla, after i type in http://www.ibm.com, is says (on the bottom of the screen) is starts saying "Resolving host www.ibm.com". It then displays and error that it can not find the host www.ibm.com

I guess i got a step further...but still....very frustrating!

HELP!!!


UPDATE!!!!

I have a feeling it is something to do with my DNS. I run Windows 2000k DNS on a server (192.168.1.111). I changed the first line of the DNS Entries on the network config screen, and the REsolving name @ the bottom of Mozilla went away...then it read connecting to IBM.com. Then it just times out.

The machine that i am on (typing these posts) is a Win2kPro machine....The host file has:

"127.0.0.1 localhost"

that is it.

all ip info are the exact same in the two boxes....but the linux does not surf. Here is the details in the /etc/host file:

"127.0.0.1 LINUX9 localhost.localdomain localhost"


MArgRes 06-11-2003 01:01 PM

Now it sounds like a DNS issue. Try pinging the actual ip of www.ibm.com 129.42.19.99. If you can ping it, then we know for sure. Did you fill out the DNS tab in the network dialog? Maybe post your /etc/resolve.conf file...

jwyant 06-11-2003 01:10 PM

Marg,

DNS setting in the network are:

207.155.183.72
207.155.183.73


/etc/resolv.conf:

; generated by /sbin/ehclient-script
search corporate
nameserver 207.155.183.72
nameserver 207.155.183.73


I tried pinging both www.ibm.com and its ip address...and nothing came up....

So...somewhere, it is not getting past my network router.....cisco 1720 (t-1line)

What about a gateway setting on the linux box....I dont see where you put that info in anywhere. That might be the issue....why i can ping internally, but not externally!!

fancypiper 06-11-2003 01:14 PM

The firewall on windows may not be configured yet to allow it access.

jwyant 06-11-2003 01:17 PM

Quote:

Originally posted by fancypiper
The firewall on windows may not be configured yet to allow it access.
Fancy,

firewall in windows...if you mean the firewall on my corp. network....it is not on the server...it is built into the cisco router...


so, how would it allow all my other windows clients to surf, but not the linux box?

fancypiper 06-11-2003 01:30 PM

Files in /etc/sysconfig on a Red Hat Linux System

fancypiper 06-11-2003 01:35 PM

Quote:

Originally posted by jwyant
Fancy,

firewall in windows...if you mean the firewall on my corp. network....it is not on the server...it is built into the cisco router...


so, how would it allow all my other windows clients to surf, but not the linux box?

I have no idea. I never have used a cisco router so I have no idea on how it would be configured. However, I do know good firewalls have to be specifically confugured to allow clients to be let through to the internet.

I do know also that the non-standard "standards" that Windows uses makes it difficult to do a lot of stuff.

jwyant 06-11-2003 01:40 PM

Fancy,

Oh...no big deal. My firewall is configured to allow all traffic out...but limits what comes in...

Still working on it....it seems that i can not get the machine to "see" the outside world...and it can ping anything on the inside.

hmmm?

fancypiper 06-11-2003 01:44 PM

Redhat two promising hits using search for "gateway":

Files in /etc/sysconfig on a Red Hat Linux System

Network Config Tips 3

MArgRes 06-11-2003 01:50 PM

You might want to look at your routing tables. The 'route' command shows them. There is also a 'Route' tab in the previously mentioned redhat-config-network when you select your NIC and click 'Edit'. Maybe your need to add a route or something??? :scratch:

Maybe also try a 'host www.ibm.com' command and see what the output tells you.

jwyant 06-11-2003 01:56 PM

i added the following lines to the /etc/sysconfig/network file:

GATEWAY=192.168.1.1
GATEWAYDEV=eth0

jwyant 06-11-2003 09:49 PM

Well,

I took another Linux box home (Mandrake 9.1) and hooked it up to my DSL, using DHCP....and Bam! Its online. I was having the same problem with this machine as i was with the RH9 in my corporate office.

THere is something that is not allow the linux boxes to resolve names on the internet.

Are there any DHCP setting that i need to check on my Windows 2000 server? Do i need to run any other protocols or services so that Linux will work?

Any differerent ports that Linux uses compared to Windows?

Thanks for all your help today!

jwyant 06-11-2003 09:49 PM

Well,

I took another Linux box home (Mandrake 9.1) and hooked it up to my DSL, using DHCP....and Bam! Its online. I was having the same problem with this machine as i was with the RH9 in my corporate office.

THere is something that is not allow the linux boxes to resolve names on the internet.

Are there any DHCP setting that i need to check on my Windows 2000 server? Do i need to run any other protocols or services so that Linux will work?

Any differerent ports that Linux uses compared to Windows?

Thanks for all your help today!

MArgRes 06-12-2003 10:17 AM

Hmmm. I dunno man. Pretty crazy. As far as ports and that go, it's all standard stuff. It's gotta be something on that network for some reason. I don't know if you tried this yet, but maybe if you use the route command to add a gateway instead (or in addition to) putting the settings in that /etc/sysconfig/network file.

The route man page has an example of that, it says to do something like:

'route add default gw <gateway-ip>'

Check it out on the man page. Try that and then just type the 'route' command by itself to make sure that it shows it correctly. It should say something like:

Default <your-gateway> 0.0.0.0 UG 0 0 0 eth0

That's how mine looks anyway. But even that is weird because I didn't have to put it in manually, DHCP just found it for me. :scratch:

Anyway, try that and see what happens?!?

jwyant 06-12-2003 10:28 AM

Yea...i agree....it was so cool to see it working on the net!!!!

I am going to try connecting to my DMZ card (firewall bypass) and put it on a static ip scheme. If that does not work...then I will need to call my ISP. If it does work...there is something in my firewall that is not allowing it to resolve names.

Thanks for the help


All times are GMT -5. The time now is 10:42 PM.