LinuxQuestions.org
Review your favorite Linux distribution.
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-23-2009, 08:41 AM   #1
pjotrb
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Unhappy Linux computer does not connect to windows-network.


hi,

I'm having a problem connecting my red-hat 7.2 machine to an existing windows network.
The lin18 (= name of the linux computer) doesn't show up in my network on the vista-computer.
Can anyone tell me why ??


ifconfig gives:
inet addr:192.186.2.240
UP BROADCAST RUNNING MUTICAST
RX packets: 0 errors 0 dropped 0 .. 0 .. 0
TX packets: 30 errors 0 .. 0 .. 0 .. 0
RX bytes: 0 TX bytes 3196

lsmod gives:
ipchains autofs 8139too ide-scsi scsi-mod ide-cd cdrom usb-uhci usbcore ext3 jbd

cat /etc/modules_conf:
...
alias eth0 8139too
...

ping 192.168.2.1 : Destination host unreachable

/etc/resolv_conf: nameserver 192.168.2.1

/etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.2.240 lin18
192.168.2.247 desktop <= windows-vista computer
 
Old 06-23-2009, 09:53 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Quote:
ping 192.168.2.1 : Destination host unreachable
Which computer is that? DHCP-Server for both "lin18" and "desktop"?
Quote:
/etc/resolv_conf: nameserver 192.168.2.1
typo? (resolv_conf vs. resolv.conf)
 
Old 06-23-2009, 10:42 AM   #3
ArcLinux
Member
 
Registered: Apr 2005
Location: Fargo, ND
Distribution: Slackware, CentOS
Posts: 87

Rep: Reputation: 20
Is Samba running and setup correctly on the linux machine?
 
Old 06-24-2009, 02:03 AM   #4
pjotrb
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jomen View Post
Which computer is that? DHCP-Server for both "lin18" and "desktop"?

typo? (resolv_conf vs. resolv.conf)
The 192.168.2.1 is my router
 
Old 06-24-2009, 02:05 AM   #5
pjotrb
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pjotrb View Post
The 192.168.2.1 is my router
The router (192.186.2.1) should be the only dhcp-server

pj
 
Old 06-24-2009, 02:12 PM   #6
pjotrb
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Extra info: (the workgroup of my vista-pc = finofix)

samba deamons are running

smb.conf:
workgroup = finofix
[global]
hosts allow 192.168.2.1/192.168.2.256
interfaces = eth0
dns proxy = no

[lin18]
comment = lin18 share
path = /home/werkdir
force user = peter
force group = peter
guest ok = yes
readonly = no
force create mode = 0775
force directory mode = 0775


On my vista-machine using the explorer and then clicking on Network should show the lin18 ?

Please help someone ,

pjotrb
 
Old 06-24-2009, 03:15 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Wouldn't 192.186.2.240 be on a different subnet than 192.168.2.1 ?
 
Old 06-24-2009, 04:47 PM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Would be a different subnet, of course, but I suppose it is another typo. See first post.
I'd first find out why the router, which is - from what I got - the dhcp-server for both the machines, is not ping'able from the linux machine.

pjotrb could check the default route of lin18 with
Code:
route -n
I also have a router which acts as the dhcp-server (just the subnet is 192.168.1.x instead of 192.168.2.x)
For me, ifconfig shows way more info than that given in the first post.
Code:
toy jochen # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

toy jochen # ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:00:f0:92:9f:e6  
          inet addr:192.168.1.25  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::200:f0ff:fe92:9fe6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1660 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1847 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:708072 (691.4 KiB)  TX bytes:320394 (312.8 KiB)
          Interrupt:5 Base address:0x6800
 
Old 06-25-2009, 12:11 PM   #9
pjotrb
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Jomen,
My route -n is almost the same.
Difference: 172.0.0.0 has the gateway 0.0.0.0

My ifconfig eth0 also almost the same.
Difference: RXpackets: 0
RXbytes: 0

Is it a problem ?
 
Old 06-25-2009, 05:49 PM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
pjotrb

Please be more careful!
It is almost certainly not this:
Quote:
Difference: 172.0.0.0 has the gateway 0.0.0.0
but this instead:
Quote:
Difference: 127.0.0.0 has the gateway 0.0.0.0
It is "almost the same" you say - please show us exactly!

You cannot even ping the router - which is giving out (via DHCP) the IP-adresses for your machines.
Are you sure your "lin18" linux machine has gotten an IP via DHCP from the router? (and not just a static one for instance...)

Quote:
Difference: RXpackets: 0
RXbytes: 0
looks as if the above guess might be correct.

I must admit that I'm already a little beyond my knowledge to be _really_ helpful here.
There certainly are people here who could help you out easily - when provided with enough information
 
Old 06-26-2009, 05:16 AM   #11
pjotrb
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
hi jomen,
thanks for puttin the effort into it.

Your last remark about dhcp seems to be the problem.
When (1) /usr/sbin/netconfig : option "Use dynamic IP configuration (BOOTP/DHCP)"
and (2) service netwerk restart
then I get:
Bringing up interface eth0: Determining IP information for eth0 ... failed

So there seems to be a dhcp problem ?
 
Old 06-26-2009, 12:04 PM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
Seems to be a dhcp problem, yes.
Could be the router not giving out an address (router misconfiguration), could be the linux machine not taking it (the dhcp-client), a firewall or even the cable itself.
The system logs should give you more clues.
If I got this right, then you are using Redhat 7.2 - which, from what I gather, is ancient - very old - from 2001.
That itself is not neccessarily a problem though.
But I have never used Redhat and know not where to look or what to do there.
It really ends here for me - sorry.
 
  


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
Connect to Linux desktop from a *PUBLIC* Windows computer (eg from a browser) 1veedo Linux - General 8 05-08-2007 08:30 PM
How can i connect a linux computer t a network printer in windows? jadeonPax Linux - Hardware 2 04-19-2006 02:24 PM
Connecting a Linux Computer to a Windows XP Network trevor4706 Linux - Networking 18 10-25-2005 10:50 PM
Connecting Linux computer to a Windows XP network trevor4706 Linux - Newbie 4 10-13-2005 09:25 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 05:44 AM


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