• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Installed REDHAT: How Get Connected To Net??

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.

  • 2
1 Solution
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.

ratboyAuthor Commented:
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!!
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.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now