Solved

Installed REDHAT: How Get Connected To Net??

Posted on 1998-11-01
3
202 Views
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.

Tanx.
0
Comment
Question by:ratboy
  • 2
3 Comments
 

Accepted Solution

by:
schmox earned 70 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.
schmox

0
 

Author Comment

by:ratboy
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!!
0
 

Expert Comment

by:schmox
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
2. PPP HOWTO
3. ISP hookup HOWTO

This should solve your problems.

Cheers,
Schmox

0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now