Installed REDHAT: How Get Connected To Net??

Posted on 1998-11-01
Medium Priority
Last Modified: 2010-03-18
I just installed RedHat and am interested in getting connected to the net.  I have C source code which will be making use of RAW SOCKETS and so TCP/IP.  Getting connected to the net is imperative.

Question by:ratboy
  • 2

Accepted Solution

schmox earned 140 total points
ID: 1587607
First, you have to setup your network configuration. If you haven't done that during installation, you may call "netconf". What exactly you have to put into the different fields depends on many different factors:
- How do you connect to your provider? Modem, cable modem, ethernet, ...
- What protocol does your ISP provide? PPP or something else?
- Do you have a static or a dynamic IP address?
- Values for DNS server, gateway host, netmask, etc. depend on your ISP. Ask him.

Regarding the raw sockets, you'll be able to run these programs when you're logged in as root. No other user has the necessary permissions to open raw sockets.

Hope that helps.


Author Comment

ID: 1587608
Hey there and thanks for the only reply schmox!  I really got lucky.

Well I want to connect to the Internet via Linux.  I will be using a 33.6K Modem (internal modem on COM Port 2), PPP Protocol, a Dynamic IP is given, 2 DNS addresses are given to me.

I will check NETCONF as you said.  I will just run it from my ~/ area and hopefully it will launch (I've been having some probs with finding programs).  I was just in X and played with Network Configuration.  I tried to fill in all the appopriate values for  the PPP section [login name, password, dial-up phone #, COM port for my modem, etc] but when I selected CONNECT the modem never kicked in to dial up the ISP.  At the command prompt I typed: "pppd" and got back the error message:

This system lacks kernal support for PPP.  This could be because PPP Kernal module is not loaded or because the kernal is not configured for PPP.

Does this have something to do with my modem not kicking in?

And one last thing, I noticed when I was filling in values for X's Network Configuration PPP area, there was a box which said EXPECT and had filled in "ogin:" and another box had filled in "word:". For each EXPECT it would output my login name or password.  Now my ISP never told me about any expect items. They just said "Just tell windows to login with name and password from the Dial Up window. Make sure the login window does not pop up after dialing in", something like that.  So, I don't know if the EXPECT items will find what they're looking for if the ISP never told me any!?

Thanks for any help you can provide!!

Expert Comment

ID: 1587609
Sorry for the late reply...

Well, it seems that you have to re-compile your kernel (that's the core of Linux!) because you don't have PPP support yet. For that, you need to install the linux kernel-source package and the kernel-headers package using the RedHat package manager (rpm), which you should find on your Linux CD. The source code should then be in /usr/src/linux.
Go to that directory and type "make menuinstall". Then you can configure the way the kernel will be compiled. In the section "network", for example, you can say if you want to have PPP installed or not. The whole issue of kernel configuration and compilation is quite complex, so I'd suggest you read some HOWTO's. If you've installed them, you should find them in /usr/doc/howtos (or similar), otherwise on your CD. They're also everywhere on the net, e.g. http://www.linux-howto.com.
You should have a look into the following HOWTO's:

1. Kernel HOWTO
3. ISP hookup HOWTO

This should solve your problems.



Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Loops Section Overview
Suggested Courses
Course of the Month16 days, 11 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question