Installed REDHAT: How Get Connected To Net??

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


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.
You should have a look into the following HOWTO's:

1. Kernel HOWTO
3. ISP hookup HOWTO

This should solve your problems.



Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
url shaping application 8 49
What antennae works with Linux? 7 80
SFP configuration on a Linux server 8 163
Iptables and mirroring ports 4 74
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…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

939 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

6 Experts available now in Live!

Get 1:1 Help Now