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 08-18-2004, 09:51 AM   #46
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15

Don't worry,
I assambled all 3 pc's together myself ;+)

it's the linux knowledge that isn't in the head ...
But if I can ping from linux to the windoze,
that seems that the network card is doing fine, not ?

Anyway, you kind of was reading my thoughts,
I'm so desperate now I'm throwing in another this in this linux machine
and will install quick & dirty a windoze on it, just to prove to myself that
the hardware configuration is working ok with it.

This way I can be 100% sure that linux is the problem.
If all goes right, it will take me 45 min work to test it ...
 
Old 08-18-2004, 03:24 PM   #47
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
Things become a bit strange and
on the other hand a bit more clear.

So on this "supposed to be linux" pc I installed win xp
and there seemed to be a problem with the second network card.

This device cannot start. (Code 10)

No problem,
ripping out a network card of one of the windoze machines,
plug it in (now I'm 100% sure I got 2 working network cards, right ?)

this second network card has the same error:

This device cannot start. (Code 10)

But I'm sure the card works ...
what's going on here ?

What's more,
I'm not getting on internet anymore with linux on this pc,
and the network card I'm assinging to internet is the same one
like I use now for half a year, and use to access internet on the
temporary windoze xp to write this ....

HEEEEEEEEEEEEEEEEEEEEEEELP
 
Old 08-18-2004, 03:55 PM   #48
olly300
LQ Newbie
 
Registered: Aug 2004
Location: London, UK
Distribution: Suse 9.0
Posts: 17

Rep: Reputation: 0
I have done a google search and code 10 means there is a driver issue in Windows, or a IRQ conflict on your machine. It's probably the latter as your machine doesn't work with linux or windows.
 
Old 08-18-2004, 05:57 PM   #49
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
have you tried a different pci slot, some nics have problems w/the bus they are on?
 
Old 08-19-2004, 04:52 AM   #50
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
even better my friend ...
Your idea is good ofcourse, but it didn't work anyway.

I stripped down the linux pc and a windoze pc,
changed all needed from one mainboard to the other,
and installed.
On internet and able to ping now in both directions ...

Hardware hey :+)

Good,
I learned to keep away from network wizards ...
the hard way :+)

what r those commands to ipmasquading again ?
 
Old 08-19-2004, 05:40 AM   #51
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
found these commands on this forum:

Edit the file /etc/sysctl.conf and on the line net.ipv4.ip_forward = 0, change 0 to 1.

code:
# Controls IP packet forwarding
net.ipv4.ip_forward = 1

In order for the changes to take effect,
at the command line, type: service network restart

Now you need to setup IP forwarding and Masquerading.
First, you need to flush the old rules.
So open a console window and at the command line, type:

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

NOTE: In this case, eth0 connects to the internet and eth1 connects to the local network.
You may need to switch eth0 and eth1.
The ifconfig command will give you more information.

To save iptables modifications, at the command line, type: service iptables save.
IPtable rules are located in the /etc/sysconfig/iptables file.

Don't forget to start iptables: service iptables start

I did so, to the letter,
no success ...
 
Old 08-19-2004, 07:03 AM   #52
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
I followed the instructions on
http://www.dalantech.com/boards/show...--fpart-1.html

no result ...
not sure now what to do exactly on the windoze side.
Anybody awake ?
 
Old 08-19-2004, 07:25 AM   #53
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
to avoid the same old questions again,
here r the answers straight away ...
please tell me what to do on windoze and linux

[root@d577c3c9 pelgrim]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:BA:EA:6D:1C
inet addr:213.119.195.201 Bcast:213.119.195.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:feea:6d1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:392 errors:0 dropped:0 overruns:0 frame:0
TX packets:443 errors:0 dropped:0 overruns:0 carrier:0
collisions:47 txqueuelen:1000
RX bytes:170606 (166.6 Kb) TX bytes:55472 (54.1 Kb)
Interrupt:11 Base address:0x1400

eth1 Link encap:Ethernet HWaddr 00:05:5D:84:250
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::205:5dff:fe84:25d0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1920 (1.8 Kb) TX bytes:3532 (3.4 Kb)
Interrupt:3 Base address:0x2000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10398 (10.1 Kb) TX bytes:10398 (10.1 Kb)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

root@d577c3c9 pelgrim]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
213.119.195.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 213.119.195.1 0.0.0.0 UG 0 0 0 eth0

Destination netmask gateway interface metric
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 20
192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 30
192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 30
224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 30
255.255.255.255 255.255.255.255 192.168.0.2 192.168.0.2 30

Persistent routes
none
 
Old 08-19-2004, 09:49 AM   #54
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
from the windows side you'll want to open network and dial up connections, make a new connection, choose dial up to the internet, then choose connect through local area network, the rest should be self explanitory.
good luck.
 
Old 08-19-2004, 09:54 AM   #55
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
make a new connection, choose dial up to the internet, then choose connect through local area network, the rest should be self explanitory.

very cryptic.
Can you say this now more simple,
like "open this, click there" ?
I have no idea how to start or what you mean ...
I'm not a system freak, like told before,
I'm just a stupid programmer.
I assume on the linux side everything looks fine to you if you
only talk about the windoze side ?
 
Old 08-19-2004, 10:10 AM   #56
olly300
LQ Newbie
 
Registered: Aug 2004
Location: London, UK
Distribution: Suse 9.0
Posts: 17

Rep: Reputation: 0
You can assemble your hardware so I am sure you can work it out Yes I am a humble programmer also.

Anyway from XP
1. click Start
2. click Control panel
3. click internet options
4. click the Connections tab
5. click Lan settings
6. complete all the stuff

or

1. click Start
2. click on "connect to"
3. click on "show all connections"
4. Under "network tasks" click on create a new connection
5. Complete all the stuff for a lan
 
Old 08-19-2004, 10:24 AM   #57
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
well,
I don't know which way I shoud ask,
but please give me clear instructions till the end ...

"and from there it explains itself",
sorry, it doesn't ...

let's take the win 98 exampe:
don't see a "connect to" in the start ...

win xp example,
internet connection options:

lan settings:
automaticly detect setting ? doesn't work
use automatic configuration script ?
exept from typing the 192.168.0.1 address there
I can't imagine something better.
Doesn't work.

Proxy settings ?
I don't have a proxy server .....

Please guys,
on my bare knees ?
how ?
 
Old 08-19-2004, 03:17 PM   #58
pelgrimforever
Member
 
Registered: Aug 2004
Location: Pelgrim"s home
Posts: 140

Original Poster
Rep: Reputation: 15
if anybody knows how to add environment variables ...

last attempt made my linux crash ...

export command doesn't seem to work,
and changing a configure file apparently made the crash ...

While reinstalling I didn't do a thing on the network settings,
still need help, anyone, PLEASE ?
 
Old 08-19-2004, 04:46 PM   #59
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
In winxp go to network connections and tcp/ip add ur linux ip address of 192.168.1.3 as ur dns gateway also check in ie options that ur browser is set to medium (as this can hinder ur network) In ur first post u said u had run the ics wizard (was this in the windoze environment in which case winxp will be 192.168.0.1 (127.0.0.1 is ur localhost which u leave alone) so if ur trying to ping ur windoze machine then go with 192.168.0.1 to make things easy for your network I would make ur linux machine 192.168.0.2. I would statically assign addresses and then also add ur win98 machine 192.168.0.3. Start with the basic thing of setting up your linux side and then adding your other machines one by one. It`s easy to get frustrated with it all but I am sure it`s just something simple that u have probably overlooked :-)
 
Old 08-19-2004, 04:49 PM   #60
mermxx
Member
 
Registered: Apr 2004
Location: Wales
Distribution: rh9, winxp
Posts: 411

Rep: Reputation: 30
ps am willing to help u sort it out but it`s late here so if i don`t get back to u , will help 2moro... hang in there u will get it sorted.....someone may comeback with help b4 then :-)
 
  


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Sharing internet & file system between Windows98 & Redhat9 cjs_pro Linux - Networking 2 07-15-2004 07:25 AM
Problems -Internet sharing Mandrake & XP Hamid_Son Linux - Networking 0 06-16-2004 04:43 AM
XP, Debian, & Internet Sharing GameboyHippo Linux - Networking 0 10-01-2003 11:34 PM
Internet Connection Sharing and Samba will824 Linux - Networking 5 06-18-2003 05:04 PM

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

All times are GMT -5. The time now is 02:25 PM.

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