LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 06-16-2003, 05:32 PM   #1
CIO_BlackRainbo
Member
 
Registered: Jun 2003
Location: /mnt/eth/us/ma/bos/cws
Distribution: Debian SID
Posts: 32

Rep: Reputation: 15
Basic networking not working


I am trying to get my GNU/Linux Mandrake 9.0 box to go on a network with several windows machines. The computer is dual-boot to XP, Linux, and macOS 8.1, configured identically under all three, yet networking works only in XP.

I used Mandrake's netconf to set it up as:
IP: 10.0.0.46
SN: 255.255.255.0

which is the same as what I have under XP (.45 under XP, really so as not to confuse the other computers.) Ping does not work in either direction from either computer. Am I missing something? Someone told me at some point that I was using a class A IP with a class C subnet mask, but that should still be valid, right?

- CIO_blackrainbow

PS:

The host is:
IP: 10.0.0.46
SN: 255.255.255.0
 
Old 06-16-2003, 05:42 PM   #2
CIO_BlackRainbo
Member
 
Registered: Jun 2003
Location: /mnt/eth/us/ma/bos/cws
Distribution: Debian SID
Posts: 32

Original Poster
Rep: Reputation: 15
Debug info if anyone is interested:

Server:
-- OS: Win XP Pro
-- IP: 10.0.0.41
-- SN: 255.255.255.0

Client as XP:
-- OS: Win XP Home
-- IP: 10.0.0.45
-- SN: 255.255.255.0

Client as Linux:
-- OS: Gnu/Linux Mandrake 9.0
-- IP: 10.0.0.46
-- SN: 255.255.255.0

Server and Client can ping eachother when client is in XP home. They cannot when it is in linux. In linux, the client can ping both itself and its loopback ip. "smb status" says that it is working (though it shouldn't be able to do anything unless the basic network stuff is working, right?).

// configuration info
[root@10 jeff]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:40:CA:44:67:24
inet addr:10.0.0.46 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:304 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:19 Base address:0xbc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:585 errors:0 dropped:0 overruns:0 frame:0
TX packets:585 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:40772 (39.8 Kb) TX bytes:40772 (39.8 Kb)

any help would be much appreciated,
- CIO_blackrainbow
 
Old 06-16-2003, 08:26 PM   #3
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
Make sure you're pinging by IP address, not hostname, to separate any name resolution problems from routing problems. Also, make sure you don't have a firewall blocking anything. Either a firewall on the server that's not expecting the .46 address, or iptables on Linux.

To view:
# iptables -L

To flush:
# iptables -F
 
Old 06-16-2003, 08:26 PM   #4
rohang
Member
 
Registered: Aug 2002
Location: Sydney, Australia
Distribution: Redhat, Open BSD, SuSe, Debian, CentOS
Posts: 177

Rep: Reputation: 30
Can you print the results of a netstat -rn?
 
Old 06-17-2003, 08:13 AM   #5
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Re: Basic networking not working

Quote:
Originally posted by CIO_BlackRainbo
The computer is dual-boot to XP, Linux, and macOS 8.1
Dual booting to 3 OS's? I think there's a gramatical error. Tripple booting maybe? (Just teasing... )


Quote:
Someone told me at some point that I was using a class A IP with a class C subnet mask, but that should still be valid, right?
This should work fine. You can use a class C subnet mask with a Class A,B or C address, and it should be fine.

You can try flushing IP tables and see if that works, but out of the box IPtables should be configured fine to begin with. I'm assuming that there are no routers in-between your linux box and the rest of the network?

slight
 
Old 06-17-2003, 08:33 PM   #6
CIO_BlackRainbo
Member
 
Registered: Jun 2003
Location: /mnt/eth/us/ma/bos/cws
Distribution: Debian SID
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the help, but nothing so far.

no routers, just cat5e cable to and from a standard hub

no additional firewalls to linux.

The server has a probably-disabled trial version of McAffe Personal Firewall Plus that came with the computer. It claims to be 'expired' and to need to verify the subscription. As it won't let me disable it (no choice) , I think it is already not running. It also would probably not do anything, as my computer gets through fine as 10.0.0.45 and I did not tell it that especially.

# iptables -L :
-- this replied that it could not find "iptables"
-- so I tried iftables, iptable, and iftable, none of which worked.

# find / iptables :
-- This took a while and found nothing

# netstat -rn : (this is retyped as my network is dead.)

Kernel IP routing table:

Destination | Gateway | Genmask | Flags | MSS | Window | irtt | Iface
------------------------------------------------------------------------------
10.0.0.0 | 0.0.0.0 | 255.255.255.0 | U | 40 | 0 | 0 | eth0
127.0.0.0 | 0.0.0.0 | 255.0.0.0 | U | 40 | 0 | 0 | lo
0.0.0.0 | 10.0.0.41 | 0.0.0.0 | UC | 40 | 0 | 0 | eth0

Note: I beliveve that the only reason that it says 10.0.0.41 as a gateway is because I told it so, and it does not signify that the computers can talk.

Last edited by CIO_BlackRainbo; 06-17-2003 at 08:34 PM.
 
Old 06-19-2003, 07:37 AM   #7
CIO_BlackRainbo
Member
 
Registered: Jun 2003
Location: /mnt/eth/us/ma/bos/cws
Distribution: Debian SID
Posts: 32

Original Poster
Rep: Reputation: 15
I was messing with partition tables on my HD last night, killed the machine and had to re-install gnu/linux and XP. It was good, though, because in this install I new what I wanted much more and was able to select the packages better. I got gcj and g++ to work - they had been annoying me for a while; turns out I just forgot to install. I was very careful in choosing which network-related packages I wanted and setting up the network properly, but the problem is exactly the same.

I was thinking; when I reinstalled mandrake 9.0, it asked me if I wanted to connect to the internet to download bug fixes. I told it 'no' as I have msn internet access which I don't think works with gnu/linux. I will try to download the fixes on my other computer, but I will have to - annoyingly - burn them to CD before I can get them to my linux box.
 
  


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
basic networking Kumado Linux - Networking 9 07-14-2005 10:32 AM
basic networking sadiboyz Linux - Networking 3 04-23-2003 02:21 AM
basic networking hermittoo Linux - Networking 2 11-14-2002 09:01 AM
Very basic networking TheSockMonster Linux - Networking 5 05-24-2002 05:31 PM
Need help with basic networking Korshun Linux - Networking 11 04-03-2002 07:37 PM


All times are GMT -5. The time now is 11:35 AM.

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