LinuxQuestions.org
Visit Jeremy's Blog.
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 07-07-2003, 12:59 AM   #1
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Rep: Reputation: 15
lan problems (ping timeout)


Hi, thanks for looking,

I've set up a local area network (in the hopes of being able to internet connection share in the future) using the following tutorial;

(forgive the spaces)
linuxlookup .com/modules. php?op=modload&name=Sections&file=index&req=viewarticle&artid=2&page=1

------tech.info-------
comp1:mandrake9.0 w/ 2 nics, eth0 has working net conn. eth1 is for lan : eth0 ip set to 192.168.0.1, eth1 ip set to 192.168.0.2
comp2:win2kpro w/ 1nic for lan, nic ip set to 192.168.0.2
----------------------
I've gotten all the way through the tutorial, and set up my eth0 to 192.168.0.1, and my eth1 to 192.168.0.2 ... everything seems to be right, i get no errors on reboot, i have a net connection working fine on eth0, now all thats left is the proper win configuration and testing the network.

I've gone into my lan properties and set the ip for the lan connection to 192.168.0.2 like the tut says, and hit ok, and restarted. now when i try pinging from either the winbox or the linuxbox, i get no response. from windows i can ping 192.168.0.2 and that works, but when i try to ping the linuxbox, it fails, request timed out. and from linux, i get failed sends on oings to both addys ...

Ive tried setting up net connection sharing in the Control Center, and I think I have everything right, but i just cant get the computers to recognize each other ... any ideas??

Thanks,
Allan

PS, if you need more info, id be happy to answer, i can go on and on and on about this, i dont know whats wrong, i had this lan working once before, but dont know what ive done different ... also, where the hell is all the decent mandrake documentation, i spent about 12hours trying to get this network working with LM9.1, but failed, so im back to LM9.0, like i said i had it once before ... I think ill have to write a TUT if i Ever get this working lol , thanks again ...
 
Old 07-07-2003, 04:16 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Are you trying to set the actual IP address of the windows to 192.168.0.2 or it's gateway address to that?

If it's the former it's going to conflict with the linux eth1, should be 192.168.0.3 windows or above and gateway 192.168.0.2
 
Old 07-07-2003, 07:51 AM   #3
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
Hi,

well uhm, according to that tut, i set my eth1 to 192.168.0.2, and i got into windows, lan properties, and enter, 'use the following ip' and enter 192.168.0.2 & netmask of 255.255.255.0 ... there are also spaces for default gateway and dns servers, but that Tut doesnt mention anytihng ... what do you think?
 
Old 07-07-2003, 08:36 AM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Windows PC connected to Linux eth1 by a cable yah?

No can do if both of them have the same IP address.

I haven't read the tutorial you're looking at but

try setting static IP on windows -192.168.0.3
Gateway- 192.168.0.2

netmask for both 255.255.255.0
 
Old 07-07-2003, 09:56 AM   #5
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
Hi, thanks again for helping, i really appreciate it, been tryin to get this working all weekend, and long story short, its important to me, thanks...

ok, so ive got this on my nic properties in windows;

IP---------
IP: 192.168.0.3
subnet: 255.255.255.0
Default Gateway : 192.168.0.2

DNS-------
primary: ---empty---
alternative ---empty---

in linux ive set up a few things like so

/etc/hosts.allow

ALL:192.168.0.2
ALL:192.168.0.3

/etc/hosts.deny

ALL:ALL

my networking config looks like

Hostname & IP devices ----------
-Adapter 1
Enabled - 'Manual' Mode (or 'static' in the Mandrake control center)
Device: eth0
IP: 192.168.0.1
netmask: 255.255.255.0
-Adapter 2
Enables - 'Manual' Mode (or 'static' in the MCC ... should this be DHCP?)
Device: eth1
IP: 192.168.0.2
netmask: 255.255.255.0

ok, now one thing in the Tutorial says, in networking>DNS nameserver settings, you need to enable DNS, which ive done, and in the first Ip enter; 192.168.0.1 ... now ive tried to do that, but everytime i reboot, it seems to get set to these two ip's 206.47.xxx.13 and 206.47.xxx.60 ...

(((read this later, dont get confused, just a side note on net sharing -- now i think these are my ISP's DNS ips? but its odd, because my isp says that when configuring, i dont need to DNS IP's ... over my head, but anyways, i wouldnt rely on those address... last time i got this network working, with a different isp, i believe i had to put their DNS ips, into the windows settings, in the primary and alternative dns boxes for my nic ... what do you tihnk?? ... anyways, that is all internet connection sharing stuff, i would prefer to simply get the LAN working, so i can transfer files....)))

ok, so Ive got all that set up properly, i think ... and again when i try to ping after setting windoze to 192.168.0.3, i can only ping itself, and i get timeouts for .2 & .1 ... so i think there must be a linux config error, maybe its rejecting my packets?? mandrake comes with shorewall set up automatically, and like i said, i had this working before and didnt need to do any config with shorewall ...

Also, a strange thing, i cant ping 192.168.0.1 from linux terminal, i get 100% packet loss, but if i open up mozilla, i can view my apache server at http://192.168.0.1/ ... so the more i think about it, my linux comp must be rejecting somewhere, ive heard of dhcp and routing ... do i need to set this up ?? im really confused ... thanks for any help,
Allan
 
Old 07-07-2003, 10:45 AM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Never used mandrake but it's supposed to make things easy lol I think you're in a bit of a muddle

Just out of curiosity what is eth0 192.168.0.1 connected to ? Cable/adsl modem or another part of a network? If eth0 is connected directly to the internet via a cable/adsl or whatever modem it should probably have dhcp enabled and not statically assigned 192.168.0.1. You can surf the web using this IP DNS servers will be your ISP servers most likely the 206. ones

Try turning off firewall to see if the other two can ping each other.
 
Old 07-07-2003, 10:50 AM   #7
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
hi!

yea eth0 is connected to my adsl modem, thats all connected fine, so i dont want to bother with internet stuff, just this networking, im going to turn off the firewall and try pinging ... wish me luck ... im also going to try installing Samba, but i feel like im opening up another can of worms, so dont worry about that :-\ ... thanks again ....
 
Old 07-07-2003, 11:28 AM   #8
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
well that didnt work ... :'( :'( ... linux cant even ping itself, this is messssed up!! somebody please help!!!
 
Old 07-07-2003, 11:43 AM   #9
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
[bungholio@linuxbox bungholio]$ netstat -r
Kernel IP routing table
Destination ---- Gateway ---- Genmask ----- Flags -- MSS--Window--irtt Iface
64.230.254.34 --- * ----- 255.255.255.255 -- UH ---- 40 0 --- 0 ---- ppp0
192.168.0.0 ---- * ----- 255.255.255.0 ----- U ----- 40 0 --- 0 ---- eth1
192.168.0.0 --- - * ----- 255.255.255.0 ----- U ----- 40 0 -- 0 ---- eth1
127.0.0.0 ----- * -------- 255.0.0.0 --------- U ----- 40 0 -- 0 ------ lo
default ---- 64.230.254.34 -- 0.0.0.0 --------- UG ---- 40 0 -- 0 ------ ppp0
 
Old 07-07-2003, 01:07 PM   #10
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Take a breathe and step back.


ppp0 indicates to me a dial-up connection but seeing as you using ADSL which uses pppoe I'm assuming it shows up like this for some reason, someone else will need to confirm this as I use cable.

Forget about everything you've done so far and get it back to the way everything was before, just an internet connection using DHCP probably, that's why you're ISP is saying you don't need to enter name servers or anything the DHCP will give you them. Check the IP address you've been assigned, it won't be 192.168.0.1 You've gone off wrong somewhere using that tutorial, connecting two PC's together and getting them to ping each other should really be a simple thing to do and you'll get there eventually.

Undo what you've done so far.

Then come back or search on this forum for a similar topic in this forum when you've got a clean slate again and naturally you're sure your using a crossover cable to connect the two pc's
 
Old 07-07-2003, 01:12 PM   #11
Bungholio
LQ Newbie
 
Registered: Jul 2003
Location: Ottawa
Distribution: Mandrake 9.1
Posts: 23

Original Poster
Rep: Reputation: 15
yea, as i suspected, here comes the weekends re-format number 4, no worries, ill start anew, and try again, thanks for the help...

PS, do you know anything about floppy drives? i got a small thing id like to accomplish before i re-format;

http://www.linuxquestions.org/questi...881#post364881
 
Old 07-07-2003, 01:29 PM   #12
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Like most people all I do is

mount /mnt/floppy
do whatever I have to do copy file etc.
umount /mnt/floppy
and that's about it

that's my fstab entry

/dev/fd0 /mnt/floppy auto noauto,owner 0 0


You really shouldn't have to reformat, things have a way of getting resolved eventually but if you feel you must on here is always a good place to search how to do something before you set out on it.

Maybe you could try another distro like Red Hat, the few times I've seen mandrake in action it's all encompassing hand holding has led to more confusion than it's been worth.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 13 03-17-2011 02:47 AM
Any idea why this time I can not ping my LAN pc but can PING for ex. www.yahoo.com vakia Debian 5 09-28-2005 06:42 PM
Internet problems on LAN, cant ping certain websites, help please lurker Linux - Networking 2 07-17-2004 10:29 AM
Eggdrop has quit (Ping timeout: 181 seconds) Kroppus Linux - Software 0 11-13-2003 11:32 AM
cannot ping lan kubicon Linux - Networking 2 09-15-2003 03:43 PM


All times are GMT -5. The time now is 10:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration