LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-07-2001, 11:22 AM   #1
gogo
Member
 
Registered: Apr 2001
Posts: 117

Rep: Reputation: 15
Unhappy


Hi,

I am a newbie to Linux as I used it just by one day.

I have 2 PCs. One is running window 98 and the other is running redhat 7.0 workstation with Gnome desktop.

I used a LAN line to connect 2 PCs.

Case 1: I use winow 98 to connect to Internet.

In my window 98 > control panel > networking >

I chose TCP/IP -> Realtek RTL PCI Fast Ethernet and set up IP addresses:

192.168.0.1
255.255.255.0 (Mask)

DNS:
205.167.231.66

Do I need to click on the ATM?

In my Linux PC:
Do I need to install Apach server 1st?

[root@localhost /root] netconf

I opened a popup window.
I entered into basic host info.
What should I enter in the host + domain?
The default is localhost.localdomain.
Do I need to change it to 192.168.0.2?

What should I type in the adaptor 1?
There are several things:
domain + host: 192.168.0.2 ??
Mask: 255.255.255.0 ??
Net Device: eth0 ???
IP add: 192.168.0.2 ??
Kernel: ne ????
IRP: ???
I/O port: ???

Then
How about the DNS?
what should I type in the default domain?
192.168.0.2 ??

Then, how about the rounting and network?
Do I need to set up the gateway to be 192.168.0.1?

What should i set in the NIC?

How can I connect to my win 98?
when i type:
ping [192.168.0.1]
> unknown host

when I type:
ping 192.168.0.1
> unreachable network
why?

when I type
ifconfig eth0 192.168.0.1
NO such device !!

I want to know how to check whether I had the eth0 device on my 98 and linux. How can I
check their existence?

Case 2: How can I use my Linux PC to connect to internet?
I setup the Dailup a/c and filled in my ISP info. But, I cannot connect to Internet.
How can I setup the TCP/IP in Linux?

Thank you very much for any kind help.

GoGo
 
Old 04-07-2001, 12:17 PM   #2
smurf
Member
 
Registered: Apr 2001
Posts: 113

Rep: Reputation: 15
I'm not sure what ur getting at here but here goes.

God dammit i posted this message to the wrong thread the first time. anyway..

I'm not sure what ur getting at here but here goes.

I'm not sure why u have a dns address in ur win98 config 4 the network card.

No u dont need to do anything t the ATM setting.

Apache is a web server so in ur case i think u just want to access the web on the linux box through the win98 box so NO u dont need apache installed.

What u need to do 4 the NIC in the linux box is the following:-

1. at the command promt type "linuxconf"
2. when the main screen appears goto Networking > Client tasks > Basic Host information.
2. type what u want in the "host name + domain"
3. tick "enabled" for a adapter 1.
3. "Config Mode" tick manual
4. "IP address" 192.168.0.x (x being anything other than 1)
5. Click "Accept"
7. If u have a ISA NIC then u have to setup the I/O stuff if its a PCI NIC then nothing has to be done.
8. Close linuxconf and activate changes (sometimes better to reboot aswell)

Right each machine should now be able to ping the other. Try it.

I u want to see what Network card r setup on both machines then do this:-

Windows machine.. Start > Run type "winipcfg" select the NIC u want to view.

Linux machine.. @ the command prompt type "ifconfig". that will how ALL NIC settings.

U may be better of setting up the modem on the windows machine (depending on what modem u have) if u use a pci modem then its a windows modem and r not supported very well at all in linux.

After setup of modem on win98 machine setup "internet sharing" on win98 box by Control Panels > Add/Remove Programs > Windows Setup > Internet Tools. Tick "internet connection sharing".
Note: Dont bother creating a Client Disk.

right now Go back to the linux box and type @ the command promt "linuxconf" Networking > Client tasks > Names Server Specification (DNS).
Tick "DNS Usage"
in "IP of Name server 1" type "192.168.0.1"
Come out of Names Server Specification (DNS) and into Routing And Gateways > Set defaults type "192.168.0.1".

This will make linux route all external IP packets to the windows machine which in turn will send the data to the web.

If u want file sharing working between the 2 machines then
install samba on the linux box and enable file sharing on the windows box


Hope this Helps
 
Old 04-09-2001, 03:16 AM   #3
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Hi,

Thank you for your detail explanation. But I still faced some problem for the ping command.

No u dont need to do anything t the ATM setting.

OK. I cancelled the setting.

Apache is a web server so in ur case i think u just want to access the web on the linux box through the win98 box so NO u dont need apache installed.

I installed apache rpm as I need to install the mod-php rpm files.

What u need to do 4 the NIC in the linux box is the following:-

1. at the command promt type "linuxconf"
2. when the main screen appears goto Networking > Client tasks > Basic Host information.
2. type what u want in the "host name + domain"

I typed "localhost"

3. tick "enabled" for a adapter 1.
3. "Config Mode" tick manual
4. "IP address" 192.168.0.x (x being anything other than 1)

I typed 192.168.0.2

5. Click "Accept"

I cannot just click accept. It requires me to choose which net device that I used. So, I chose eth0.

7. If u have a ISA NIC then u have to setup the I/O stuff if its a PCI NIC then nothing has to be done.

Assume I did not have ISA NIC as I don't know how to check it.

8. Close linuxconf and activate changes (sometimes better to reboot aswell)

Done.

Right each machine should now be able to ping the other. Try it.

Cannot ping!

When I typed: ping 192.168.0.1 > Network is unreachable.
When I typed: ping [192.168.0.1] > unknown host.

Why?

I u want to see what Network card r setup on both machines then do this:-

Windows machine.. Start > Run type "winipcfg" select the NIC u want to view.

I chose NDIS 5.0 driver and it shows 192.168.0.1 as the IP and 255.255.255.0 as the mask.

Linux machine.. @ the command prompt type "ifconfig". that will how ALL NIC settings.

It shows the following:
Link encap: Local Loopback
inet addr: 127.0.0.1 Mask: 255.0.0.0
up Loopback running
MTU: 3924 Metric:1
RX Packets: 86 Errors:0 dropped:0 overruns:0 frame:0
TX Packets:86 " " " carrier:0
Collissions:0 txqueuelen:0

U may be better of setting up the modem on the windows machine (depending on what modem u have) if u use a pci modem then its a windows modem and r not supported very well at all in linux.

I don't whether I am using the pci modem. I used an internal model card on my window 98 machine.

After setup of modem on win98 machine setup "internet sharing" on win98 box by Control Panels > Add/Remove Programs > Windows Setup > Internet Tools. Tick "internet connection sharing".
Note: Dont bother creating a Client Disk.

Done.

right now Go back to the linux box and type @ the command promt "linuxconf" Networking > Client tasks > Names Server Specification (DNS).
Tick "DNS Usage"
in "IP of Name server 1" type "192.168.0.1"
Come out of Names Server Specification (DNS) and into Routing And Gateways > Set defaults type "192.168.0.1".

Done.

This will make linux route all external IP packets to the windows machine which in turn will send the data to the web.

If u want file sharing working between the 2 machines then
install samba on the linux box and enable file sharing on the windows box.

Thanks. I will do it later when I setup the network % these 2 machnies.

Moreover, I want to know that why it was "Failed" in the Linux System logger during starting Linux?

Also, I cannot connect to internet using the linux machine individually and directly. I setup the dail up config with my ISP and try connect to internet through PPP.

But, it shows that:
WvDial: Internet dailer version 1.41
Cannot open /dev/ttySO: Device or resource busy
Error: Unable to initialize modem
DAILING FINISHED

Why??

Finally, how can I splite part of the Hard Disk and make partition in the Linux machine? I want to split it into c: and d:. I want to keep Linux 7 in c: and install window 2000 in d:. How can I do it?

Thanks a lot.




 
Old 04-09-2001, 05:09 AM   #4
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
Sounds like your firewall settings. Click linuxConfig, select the control teb, and select turn off firewalling. Don't click activate changes or it will rectivate. Pinging etc should then work. As to properly configuring your firewall, I'm still working on that, but there are lots of websites. Try http://www.linux-firewall-tools.com .
Regards
Jim
 
Old 04-09-2001, 01:30 PM   #5
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Hi,

Thank you for your advice. But, I don't think it is related to the fire-wall issue as I have not set any firewall before.

ifconfig eth0 192.168.0.2 up

It returned "NO such device".

Was my LAN card damaged? I used all-in-one PC book and the LAN card was built-in. How can I check whether it works or not?

I can ping 127.0.0.1 only.

Thanks a lot.



 
Old 04-09-2001, 06:48 PM   #6
smurf
Member
 
Registered: Apr 2001
Posts: 113

Rep: Reputation: 15
Exclamation Right this is getting a bit confusing

Right lets take 1 thing at a time.

It looks to me as if the network card in the linux box is not working due to
a) Kernal not compiled with support 4 your NIC
if so then and u dont know how to compile the kernal then read the kernal howto is really is no that hard (trust me)

b) U r using a ISA Network card with the wrong I/O settings

C) Other.

The "Ifconig" should display something like this

eth0 Link encap:Ethernet HWaddr 00:20:28:8A:CF:A9
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5292097 errors:0 dropped:0 overruns:0 frame:0
TX packets:4903968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xe800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

Do u know what network card u have?
If u dont know then I suggest either finding out what NIC u have r purchasing a PCI NIC something cheap like a REALTEK 8139 chipset. They r supported and r reliable.

Some other thoughts i have r
1. How r u connecting the 2 boxes together (eg. hub)
if u r using a direct ethernet cable connection make sure it is the "twisted" type where both rj45 connectors r wired opposite

2. Have u made sure your win98 NIC is working properly check the system in control panels

When all this is done (if ur lucky) then follow the steps from my 1st reply

c if this helps u get started. GOOD LUCK

[Edited by smurf on 04-09-2001 at 07:57 PM]
 
Old 04-10-2001, 04:51 AM   #7
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
shouldn't that be just ifconfig eth0, rather than with the IP address in?
My RH7 automatically enables firewall, as there are no rules set up, it basically shuts everything down. I'd try deactivating it and trying again.
Regarding eth0, you should be able to check it exists by looking in LinuxConfig basic host info, or in netconfig interfaces
Regards
Jim
 
Old 04-10-2001, 05:04 AM   #8
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hello again
Just re read most of the thread. Sounds like your eth0 isn't initializing, which can be tricky as all NetgearFA311 users know! If it's a laptop internal card,you may be stuffed.You could try asking at the shop, take a screwdriver to it and look at the chip, or check the manufacturers website. Alternatively, did you get any Windows etc driver discs with your PC? They should tell you what you have. If you can't figure it out, desperate times calling for desperate measures, you could install a pNp user friendly world dominating OS eg Windows, and look in device manager which will tell you what your pNp card is.
Regards
Jim
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
copying file in a network (linux server and window workstation) shadowsurfer Linux - Newbie 4 09-17-2004 11:15 AM
how to network linux on window network papafredoo Linux - Networking 1 04-25-2004 09:13 PM
Need an easy way to connect a Linux Client to a Window$ network ikw38 Linux - Networking 3 07-25-2003 02:11 PM
Share a FAT from linux box to window$ network DigitalTygrrr Linux - Networking 4 04-18-2003 11:24 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration