LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-10-2004, 02:22 AM   #1
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Rep: Reputation: 15
Unhappy Hello...How to setup Internet connnection in Redhat 9.0 ?


Hello everybody who reading my question, I'm a total Linux newbie here. I just installed Linux Redhat 9.0 yesterday. Previously I'm using Windows XP Professional.

I'd encounter the problem with connecting my Linux Redhat with the internet. Can somebody help me to solve this problem please?

I'm previously using Windows XP Professional. The internet service I'm using is ADSL. I subscribed this connection service yearly. I don't need to use any ADSL modem to connect to the Internet but just login and get authentication myself from a website. This is because my ISP just provide me an IP number and I just enter this IP number on the Address bar (in windows XP)and press enter, then a website will prompt out from my I.E, and I just key in my account login name and password there to connected myself up to the line.

Of course before I do this in Windows Xp, I need to do some setting like enter my own IP number, DNS, Gateway which are provided by my ISP during my subscribtion to the Internet service. It is just very easy as after i keyed in all these info into my Windows TCP/IP network setting and then I can just connect to the Internet~~

But, I found difficutties when I tried to do the same thing on my Linux Redhat system. I'm sure that I've key in the same info (IP,DNS,gateway)to my Linux . After I do this, the linux system will asked me to reboot my system in order to take effect on my setting, but althought I've did it(rebooted), and when I try to click on the internet browser in Linux, it just shown me an error as there is not connection

Although I tried so many times with re-setting the IP,DNS,GATEWAY which provided by my ISP, but it just workless...

Can somebody who are expert here solve my problem please~~~~

Your Suggestion and reply will be totally appreciated

Thankyou very much for those who pending your time to read my question.
 
Old 03-10-2004, 03:08 AM   #2
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Rep: Reputation: 30
I am confused. Most ISPs (even ones which give you static IPs) allot you your IP via DHCP. Ergo, in your redhat config, you should select "DHCP", rather than inputing an IP address.

Now, as for the IP address you are supposed to visit (to log in), is that the same, or different address as to what you put in your redhat config? These addresses SHOULD NOT BE THE SAME. You should select "DHCP" in redhat, and once your connection is up, you should type the (login) address into your browser (Or better yet, bookmark it)

And dumb question. Did Redhat REALLY say to reboot? (I have very little experiance with redhat) That's really slackness on the part of redhat. A simple
ifdown eth0 & ifup eth0 should do enough, without rebooting.

(Note, if you have more than one network card, then you may need to use eth1 / eth2 / etc)
 
Old 03-10-2004, 05:03 AM   #3
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
Talking

thanks urzumph:

Yeah you are right, It has 2 network cards which is sloted in my CPU now.
in the Linux RH, both of them were default as eth0 & eth1

i plan to use:

eth0 (network card #1) to connect to the internet and then
eth1 (network card #2) to connect to my second computer (coz im going to
share the internet access with the another computer.

I'd tried your suggestion, as you told me that i shoudn't key in the IP myself but just click on "DHCP" and allowing linux to configures eth0 & eth1 itself. After the action above, I clicked "accept" and then linux prompted as below:

==================
Redhat-Config-Network
==================
Changes are saved, you
may want to restart the
network & network services
or restart the computer.

Oh~~~~i really dont' know how to restart the "network" or the "network service" without restarting my linux system, could you please should me how to do it? I'm sure I should do it in the comand prompt right ( I mean "terminal X")

So, what i do was restart the computer and then log in to linux redhat "startx" again. after I loged in and I straight away click on the "Mozilla web browser" and type in 192.168.168.6 <---(this is my ISP website for me to enter my login name and password in order to log-in to internet) but, a message has prompted as below:

Alert !!
=====
The connection was refused when attempting to connect 192.168.168.6

above is the message which i received when last time i key in my IP address, DNS, Alt DNS, & gateway manually.

urzumph, I do understand that I shouldn't key in the IP: 192.168.168.6 to the IP column.

What I know is when after I subscribe my internet access, my ISP will provide me a detail in an A4 paper. Inside the detail, it does noted that please key in the below information in each column in your "network setting" from your Windows XP.

Then below the A4 paper will have this:

IP : 192.xxx.xxx.xxx
subnet mask : 255.255.255.0
DNS : xxx.xxx.xxx.xxx <--- just an e.g
Alternate DNS : xxx.xxx.xxx.xxx
gateway : xxx.xxx.xxx.xxx

If i follow the instruction above and key in above detail to my windows xp TCP/IP setting, then i will be successfully to log in to my ISP provider page (which is 192.168.168.6)

And what I know is, if I'm not key in the above IP,subnet,DNS, blar..blar(provided by ISP)... to the TCP/IP setting in winXP, then my ie will not allow me to log in to my ISP page --->192.168.168.6

do you got me..? so how should I solve my connection problem in linux? because now even I choose DHCP, it seems useless, linux will just prompt me the same problem ---> "The connection was refused when attempting to contact 192.168.168.6"

thanks brother urzumph.

Last edited by seow_ming; 03-10-2004 at 06:48 AM.
 
Old 03-10-2004, 11:11 AM   #4
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
Strange ISP....

I have yet to run into and ISP in the USA that does anything like this, but here's what I can tell you.

First off, 192.168.X.X is a PRIVATE addressing scheame. It is not available via the internet so do not worry about typing the address here. We can't get to those addresses. They aren't even routed on the internet.

Did your ISP give you some sort of "Modem/Router" device to hook your eathernet cable into? If not, what's at the other end of the cable?

If it just plugs into a wall then my guess is you have some sort of authenticaing proxy at the other end. It could be a M$ ISA server.

Post back if you've just got an eathernet connection to the wall, and if so, I'll try to put together a method to get you out that proxy.

MrKniely
 
Old 03-10-2004, 08:53 PM   #5
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
thanks MrKniely,

Yes, the other end of the cable is pluged into the wall. My ISP didn't provide me any router or modem. It could be like what what you said, which is the authenticaing proxy at the other end and could be a M$ ISA server.

So what should i do now? Can you please help me to figure out this? thankyou very much

Anix
 
Old 03-10-2004, 11:04 PM   #6
charon79m
Member
 
Registered: Oct 2003
Distribution: Just about anything... so long as it is Debain based.
Posts: 297

Rep: Reputation: 30
First off, when you try to go to a website do you get an error? If so, post your error here.

As for getting through the ISA server, I hear that the newest version of Mozilla allows you to use NTLM (the protocol that ISA uses) to authenticate. I have not personally used it, but I hear it works. I have used this application before: http://apserver.sourceforge.net/ . It works great and it's easy to configure.

cheers,

MrKnisely
 
Old 03-10-2004, 11:21 PM   #7
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Rep: Reputation: 30
Quote:
Originally posted by seow_ming
thanks urzumph:

eth0 (network card #1) to connect to the internet and then
eth1 (network card #2) to connect to my second computer (coz im going to
share the internet access with the another computer.

Oh~~~~i really dont' know how to restart the "network" or the "network service" without restarting my linux system, could you please should me how to do it?
Unless you have a DHCP server inside, you should configure eth1 for static IP (in the 192.168.0.x range). I don't know anything about ISA, so I can't help with that

As for restarting your network service, that should just be, in the terminal :
ifdown <interface name>
ifup <interface name>

where <interface name> is eth0 or eth1
 
Old 03-11-2004, 12:50 AM   #8
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
to urzumph:

thanks for your second reply!!, thanks for shows me about the command

# ifconfig <<hardware name>> up (or down)

but it doesn't work for me at all , as i told you that Im totally a Linux newbie, so i really don't understand that why when I type the command above ("ifconfig eth0 up") then the system will prompt me an error and saying there are no such command

everytime when i come to the TERMINAL, my current location will be in --> /home/anix" so i just type the ipconfig eth0..... at this location, I don't know is that I need to go to another specific location to type the "ifconfig eth0 up" command then only it works.

I know the command you given to me is totally correct. I think this problem (so such command) might due to my installation problem or linux setting problem. (maybe there are some option that I forget tp click on, or Im not notice.) <-- could you please explain to me about this? and how to solve it?


thankyou very much ~~~~~~!!

Last edited by seow_ming; 03-11-2004 at 12:59 AM.
 
Old 03-11-2004, 01:25 AM   #9
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
The complete path to ifconfig is /sbin/ifconfig. Try typing:

/sbin/ifconfig eth0 up

To see all your working interfaces:

/sbin/ifconfig -a

You might be prevented from changing your eth0 settings if you are not logged in as root.
 
Old 03-11-2004, 02:07 AM   #10
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
thanks Pingswept:

Thanks for your information, yes I just log in to my RH9 justnow and I try to find out where the real location for "ifconfig" is, I found it is located in the folder named sbin. So now imaging i'm already in the folder of <</sbin/>>I tried to type the command again which taught by urzumph in this folder and press enter, but the system still showing me with:

"no such command"

how come?? it is impossible as I already seen the command is just infront of my eyes

and i believe that there must be some way which will allow me to just type in the command without typing out the full command as you told me from the above post right? may i know how to make it?

thanks~~ Pingswept~~~
 
Old 03-11-2004, 02:26 AM   #11
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
to MrKnisely:

I'm so greatful for your second reply~~~~! thanks at all. Yup, I'd visit to the website which was introduced by you and downloaded the latest version of NTLM protocol.

My box is actually having 2 harddisks. Each of them are 40BG, so what I do now is as below:

1st 40GB for ---> Windows xp
2nd 40GB for ---> Linux RH9

I downloaded the NTLM file into my winXP harddisk since I cannot connected my RH to download it. But the problems is now coming while i'm trying to install the file in my RH9.

When I restarted my PC and log into RH9, I was so shock after sometimes of seaching my 1st harddisk~~!! I cannot find my Windows harddisk at all. How could this happened. Since I cannot locate my harddisk, I can't locate the NTLM file too, thus, I cannot install the NTLM protocol into my RH9, and till now, I still cannot connect my RH9 into the Internet



please help~~~~

Quote:
First off, when you try to go to a website do you get an error? If so, post your error here.
yes, no matter I type www.hotmail.com or www.yahoo.com, it does give me an error msg as below:


www.hotmail.com could not be found, please check the name and try again

do you know what happened to this??

thanks for your help

-----------------
anix
 
Old 03-11-2004, 02:30 AM   #12
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
It doesn't matter what folder you are in, only whether /sbin is in your PATH, and it's not.

Try typing out the full path:

/sbin/ifconfig -a

Alternatively, you could type this:

$PATH=$PATH:/sbin

This will temporarily add /sbin to your path, but that's probably a bad idea. Then you could type just:

ifconfig -a
 
Old 03-11-2004, 03:29 AM   #13
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
to pingswept:

Quote:
It doesn't matter what folder you are in, only whether /sbin is in your PATH, and it's not.

Try typing out the full path:

/sbin/ifconfig -a
I'd tried to type out the full path and then the below message is shown,

bash:/root/sbin/ifconfig
: permission denied

I found that, no matter what command I used, as long as it is regarding with the system command, the system will just show me "permission denied" msg. Is that regarding with my kernel problem or others setting problem?

please help

thankyou so much for reading my post....

anix

Last edited by seow_ming; 03-11-2004 at 03:31 AM.
 
Old 03-11-2004, 04:24 AM   #14
urzumph
Member
 
Registered: Jan 2004
Location: Australia
Distribution: Debian
Posts: 168

Rep: Reputation: 30
The reason you are getting permission denied errors is because you are not logged in as a user with sufficient privleges. During the setup / configure phase, most of what we tell you to do will need to be done as root.
!!! DO NOT MISTAKE THIS AS AN INVITATION TO RUN EVERYTHING AS ROOT !!!
Only setup / configuration tasks. Don't read your email as root. Please.

When logged in as root, you should have permissions to use ifup, ifdown & ifconfig. You should also have /sbin in your path (IE: you can type ifup and it should know what you mean) as a shortcut which is useful for other things, you can use ./<filename> which means <filename> in the current directory, and counts as a full path.

The safest way to use root is either :
CTRL-ALT-F2 and login to the normal shell
Open a X-Terminal of some sort, type the command su and enter your password.
You will now have a command prompt logged in as root.

If you still get permission denied errors as root, try executing (as root):
chmod u+x /path/to/executeable

Quote:
When I restarted my PC and log into RH9, I was so shock after sometimes of seaching my 1st harddisk~~!! I cannot find my Windows harddisk at all. How could this happened. Since I cannot locate my harddisk, I can't locate the NTLM file too, thus, I cannot install the NTLM protocol into my RH9, and till now, I still cannot connect my RH9 into the Internet
OK, now this statement confuses me.
Are you confused because :
A) You could find your Windows HDD before, but now cannot
B) You can't find your windows HDD, and never have been able too.

The quick answer is, your windows drive should be in the filesystem
somewhere under /mnt (Where under /mnt varies greatly between distros)

Essentially, I am going to answer B, and you will just have to check everything is correct in the case of A
Firstly, login to root.
run the command
fdisk -l
(On the above line, that l is a lower-case L (damnit, I hate non-specific fonts))
now, this should print your partition table for all the installed HDDs on your machine. On the Right Hand Side, Under the System Heading, one of the lines should say something like "NTFS" "DOS" "FAT32" (although, unless you up-graded to windows XP, "FAT32" is unlikely) or perhaps "WINDOWS"
if you have multiple of these, then you have multiple windows drives, and you are going to have to repeat the following steps for all, and figgure what is what after.
Now, Follow that Row to the Left. Under the Device column, it should say something like /dev/hda1 (where a can be any letter, and 1 any number)
For the purposes of this, I will assume it is /dev/hda1 and you can simply change all referances to hda1 to whatever yours is.)

Now, open the file /etc/fstab as root.
Check for any lines containing, in the device column, /dev/hda1
If none exists, it's time to create one.
If one does exist, then you can access your windows drive from the location in the second column.

If windows is installed on an NTFS partition, add this line:
/dev/hda1 /mnt/hda1 ntfs ro 0 0
For FAT32, add this :
/dev/hda1 /mnt/hda1 vfat umask=0 0 0

If Unsure, try NTFS

now that is done, go to /mnt, and check you have a directory called hda1
if you do not, create it with
mkdir ./hda1

once that is done, you are ready to mount your windows file system.
type :
mount /dev/hda1
That should work, and your windows files should be in the /mnt/hda1 directory.
 
Old 03-11-2004, 07:43 AM   #15
seow_ming
Member
 
Registered: Mar 2004
Location: Currently in China
Distribution: Fedora 9
Posts: 130

Original Poster
Rep: Reputation: 15
hi urzumph,

First of all, I would like to say so thankyou to you as you really patiently to guide me one by one from your latest post. Thankyou very much as you really make me fell so happy when everytime receive a post from you. thanks urzumph~~~~!!!!!!

The time here is now 9:34p.m, since my parents need to use the internet access from the another room of my house now (I told you i got 2 computers which are sharing the internet access via Winxp Pro b4 rite?), so I just got no chance to try what you had guided me from your latest post, I think I will only try it by tomorrow morning once I wake up.

Anyway, thankyou very much~~!! Hei, may i know where are you from? Lets make a friend if you don't mind ~~



anix
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kerberos Connnection Refused! mesh2005 Linux - Networking 0 11-13-2005 02:54 AM
setup internet king kong killa Linux - Networking 18 06-07-2004 03:54 PM
internet setup oregonroper Linux - Networking 3 10-06-2003 08:36 PM
redhat valhalla internet setup help!! siegwulf Linux - Networking 1 03-22-2003 11:42 PM
Internet setup Ungabi ! Linux - Software 17 03-16-2002 04:46 PM

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

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