Solved

Need Help setting up Networking

Posted on 1998-09-24
7
173 Views
Last Modified: 2010-03-18
Right now i have my computer set up to run WIn98 and LINUX. I have networking installed on WIN98 and want to install it onto LINUX. But I have no idea how to do it? I am running Red Hat 5.1. can someone please help me? what information do i need to set it up?
0
Comment
Question by:GreatOne
  • 4
  • 3
7 Comments
 
LVL 1

Accepted Solution

by:
jreese earned 100 total points
ID: 1586950
1. In your ~/bin directory, create 2 shell scripts: isp, and isp.chat. Edit the following to match your needs:

=====
#!/bin/sh
# isp script
/usr/sbin/pppd connect ~/bin/isp.chat /dev/cua1 115200 asyncmap 0 crtscts lock modem defaultroute
=====

=====
#!/bin/sh
# isp.chat script
chat -t120 CONNECT ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIAL TONE' '' ATDT5551234 CONNECT "" ogin:-BREAK-ogin: username word: yourpasswd
======

2. call isp script: >isp

This will start the pppd daemon, call the isp.chat script, and logon to your isp.

Your ISP's DNS servers go in the file /etc/resolv.conf.

Any further questions, please let me know.

Jim

0
 

Author Comment

by:GreatOne
ID: 1586951
Jim,
I forgot to mention that I get network access via a LAN. So how would i set up linux for this? I'm guessing the two scripts you gave me won't do this.

Thanks
0
 
LVL 1

Expert Comment

by:jreese
ID: 1586952
You need to set up your Ethernet card with ifconfig. This is usually done in one of the scripts in /etc/rc.d. You can issue the following command to get things going:

/sbin/ifconfig eth0 209.1.2.3 broadcast 209.1.2.255 netmask 255.255.255.0

substituting your own proper numbers for the ip address, broadcast and netmask.

Then you need to add a default route:

/sbin/route add -net 209.1.2.0 netmask 255.255.255.0

Hope that helps some more. Let me know if you need more specific info, and I can tailor it for you.

Jim
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:GreatOne
ID: 1586953
Ok,
One last thing. I don't have a static IP address, it's dynamic. How would I get the broadcast value? I got the other values by using winipcfg in Windows.
Thanks
0
 
LVL 1

Expert Comment

by:jreese
ID: 1586954
The broadcast value is usually 255.255.255.0, but you should check with your ISP/network admin.

Jim
0
 
LVL 1

Expert Comment

by:jreese
ID: 1586955
Err--scratch that last comment. I meant that it's usually the same as your IP, but the last octet is 0. So, just use your IP address, substituting 0 as the 4th number.

Jim

0
 

Author Comment

by:GreatOne
ID: 1586956
Hey Jim,
Thanks for all the help. Everything works great. Here are your points, you earned it.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 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

13 Experts available now in Live!

Get 1:1 Help Now