LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-12-2004, 02:21 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Rep: Reputation: 32
cant ping my linux box


here is my problem

I have 2 network cards on my XP box, one goes to my dsl unit, the other goes to my other linux box using a cross over cable.

I cant seem to ping linux from Xp or XP to linux.

Is there some thing i should do to the XP box to allow traffic though the 2nd nick, so i can access the linux box ( Tinysofa ) using putty, FTP etc etc..

TT
 
Old 05-12-2004, 02:49 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
check xp box if firewall allow connection on 2nd NIC. and also stop iptables service in linux box. check net cards if the link ligth up. and sure make sure that xp and linux box are in same network.

actually its not neccessary to turn firewall off in xp box to access linux box.
 
Old 05-12-2004, 03:30 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
the firewall is off on the 2nd nick.
and the lights are both working on each end.


Quote:
and sure make sure that xp and linux box are in same network.
not sure what you mean by that

TT
 
Old 05-12-2004, 05:11 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
what "ipconfig" shows in xp box and "ifconfig" in linux box?
 
Old 05-12-2004, 05:17 AM   #5
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
this is the XP read out

Windows IP Configuration


Ethernet adapter Tinysofa: PCI card

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter ADSL: <---onboard lan

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.10
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1

tinysofa is the other pc the cross over cable is going to..
inet addr:192.168.1.28
bcast:192.168.1.255
mask:255.255.255.0

hope thats it

TT

Last edited by tommytomato; 05-12-2004 at 05:21 AM.
 
Old 05-12-2004, 05:26 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
as i understand

linux (192.168.1.28)---cross cable--- (192.168.0.1)xp(192.168.1.10)-- adsl

right?

linux and xp isnt in same network. change linux ip to 192.168.0.28
#/sbin/ifconfig eth0 192.168.0.28

and then try to ping xp.
 
Old 05-12-2004, 05:34 AM   #7
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
you got it right

DSL unit has 4 slots all used

1.pc is the mrs- one nick
2.pc is the kids- one nick
3.pc is my XP pro has two nicks 2nd nick goes to 5th pc ( Tinysofa )
4.pc is server ( got home page on it ) - one nick

XP is IP 192.168.1.10
255.255.255.0
gateway 192.168.1.1

cross over to tinysofa

tinysofa IP eth0 is 192.168.1.28
Bcast 192.168.1.255
Mask 255.255.255.0

Hope than make sence

TT

Last edited by tommytomato; 05-12-2004 at 06:03 AM.
 
Old 05-12-2004, 06:04 AM   #8
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
I did what you said and it has chance to that IP
#/sbin/ifconfig eth0 192.168.0.28

I did a service network restart and it tells me ( Bringing up interface eth0: OK

Then on boot up i get this error
modprode: Note /etc/modules.conf is more recent than / lib/modules/2.4.26-5tsfirewall/modules.dwp

and then doing a ifconfig is has gone back to the old IP again

TT

Last edited by tommytomato; 05-12-2004 at 06:15 AM.
 
Old 05-12-2004, 06:34 AM   #9
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
hello
maxut is right , its look like Wrong IP configration problem

Machin A With 2 lan card Lan 1 IP connected with DSL -->192.168.1.10
Lan 2 IP connected with machin B->192.168.0.1

machine B with 1 lan Connected with machine A Lan 2 -->192.168.1.28

yes Change Machine B Lan 1 IP to 192.168.0.28
Or
can change machine A Lan 2 IP to 192.168.1.1

iP Address can be change with ifconfig command

Lets supse u chane machine 2 ip to 192.168.1.1 then do following test

then cehck with ifconfig that card is showing proper ip, then ping on Machine A to it own LAN card Ip's 192.168.1.10 and 192.168.1.1
same with machine B to ist own ip 192.168.1.28

Above test confirm that Lan card are working fine.
then ping from machine A to 192.168.1.28 and machine b to 192.168.1.1


IF still problem check croseover cable

Regards
 
Old 05-12-2004, 06:44 AM   #10
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
Thanks i'll give it ago and see what happens.

How do i save this
#/sbin/ifconfig eth0 192.168.0.28

when the PC is off and turned back on, the IP changes

TT
 
Old 05-12-2004, 07:08 AM   #11
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
ok here is what happend

I changed the ip on the tinysofa box to 192.168.0.28 using /sbin/ifconfig eth0 192.168.0.28

I cant ping from tinysofa to XP EG: ping 192.168.1.10
would that be because of the Firewall on Xp

How ever i can ping from tinysofa to 2nd nick on XP EG: ping 192.168.0.1

and i can ping the tinysofa from XP EG: ping 192.168.0.28

How do i save the IP for the tinysofa box

TT

P/s just to test it I started httpd by EG:service httpd start
and it came up ok, and i'm able to view it via XP browser.

but yet again how do i save it on boot up.???

Last edited by tommytomato; 05-12-2004 at 07:23 AM.
 
Old 05-12-2004, 07:45 AM   #12
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
use
#netconfig
command to configure your network. it will save your configuration.

will u enable ICS (internet connection sharing) on xp ? if u want to do, u may prefer automatic ip assing (DHCP) instead of static ip in linux box. if want to give static ip for linux, u must give gateway ip (192.168.0.1) and nameserver ip (192.168.0.1) too for linux box.
 
Old 05-12-2004, 08:00 AM   #13
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

Original Poster
Rep: Reputation: 32
cool that worked

How ever i still get this error and i'm unsure what it means

on boot up i get this error
Bringing up interface eth0: modprode: Note /etc/modules.conf is more recent than / lib/modules/2.4.26-5tsfirewall/modules.dwp.

ping works both ends

and another thing i started sshd, but i cant log in via putty on my XP box, but if i use the tinysofa PC i can log in as root ok, whats the deal here ?

TT
 
Old 05-12-2004, 08:08 AM   #14
mobassir
Member
 
Registered: Jul 2003
Location: Pakistan
Distribution: Redhat , SME
Posts: 346

Rep: Reputation: 30
hello

regarding this issue
"I cant ping from tinysofa to XP EG: ping 192.168.1.10
would that be because of the Firewall on Xp"


yes it can becouse firewall on xp , if u did not intall any firewall the check xp default fire wall will be enable for that
-->open lan card properties-->Advance --> firts option will be Firewall if enable just remove check mark from option.--> apply--->OK

use ifconfig eth0 or eth1 192.168.0.28 may be i forget if could not work use ifconfig --help will show u proper way.

Regards
 
Old 05-12-2004, 08:08 AM   #15
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i think u have enabled firewall in linux box. so it refuses connections comes from xp box. as i understand u r in secure network. so stop it.

stop iptables (firewall).
#/etc/rc.d/init.d/iptables stop

it wont work every bootup
#chkconfig --level 35 iptables off
 
  


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
Cannot ping linux box from XP box antare Linux - Networking 10 03-10-2005 10:48 AM
canīt ping my linux box by its name :( pavalosv Linux - Networking 3 01-13-2005 11:03 PM
can't ping linux box jammy3 Linux - Newbie 3 12-03-2004 11:33 AM
Cannot ping the linux box amirbhai Linux - Networking 4 06-25-2004 04:43 PM
Can't ping linux box Zero Linux - Networking 4 05-11-2002 01:26 AM

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

All times are GMT -5. The time now is 03:10 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