Solved

Need Help setting up Networking

Posted on 1998-09-24
7
177 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Multicast - Linux 4 39
Embeded Linux on Router 9 110
IPA - can it be run on a web server? 3 228
Linux Networking : What is of bond interface & when it will be useful 18 124
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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