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-15-2004, 11:53 AM   #1
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Rep: Reputation: 15
mdk 10 lan problems


I have 2 computers:

one with Win XP Pro, this one connect to internet via modem
the other with mdk 10 and I connect them via ethernet cards trought a cross cable.

(I need say that I previously have mdk 9 and work fine)



I open wmnet for linux, when I start the win PC, is showed some red blocks and some white ones, I guess is because is communication between the PCs. Also if I restart the connection from linux, or I restart mdk PC, then in the win computer the icon for LAN connection say "cable disconnected" and then "cable connected".

Then by that I guess that yes there exist communication between the PCs, but I can not understand for what I can not open a web page from mdk...

Also I can not see nothing in the groups from windows, only the itself computer.



I need do this, specially the sharing of files because in the win PC I have information, but I can not plug the HD to the mdk PC because is diferent interface (serial ata and normal hd). Also the internet connection (yes is shared completely) from windows, because I need check my mails and other things.
 
Old 06-15-2004, 12:58 PM   #2
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
mmm, some hints, I am reading the http://wiki.linuxquestions.org/wiki/Networking_basics there say that I need run ifconfig in root mode, then I su in console and get the command.

All go right in the start, I see the lo and the things 127.0.0.1 like is showed in the text.

Then when I do ifconfig eth0 up is showed exactly what say in the text, exept that the line (not showed is):
Code:
inet addr:192.168.0.2  Bcast:192.168.255.255  Mask:255.255.255.0
IN the text say that
Quote:
Sometimes you will see the following

inet addr: 0.0.0.0
But in my case I dont see nothing, I not see inet addr line.

Then I ran dhclient (aside note: was is sit0??.. because also I can see that in the configure your system in the section networking->watch connections.. is showed eth0 and sit0...) say that is not finded configuration for sit0, and dont say nothing bad about et0, but I get some like this results:
Code:
sit0:unknow hardware address type 766
/sbin/dhcpclient-script:configuration for sit0 not found.
sit0:unknow harware address type 766
Listening on LPF/sit0/
sending on LPF/sit0/
Listening on LPF/lo/
sending on LPF/lo/
listening on LPF/lo/eth0/00:d0:09:4e:ca:9e
Sending on LPF/lo/eth0/00:d0:09:4e:ca:9e
Sending on Socket/fallback
receive_packet failed on sit0: Network is down
DHCPDISCOVER sit0 to 255.255.255.255 port 67 interval 4
send_packet: Netword is down
DHCPDISCOVER lo to 255.255.255.255 port 67 interval 7
DHCPDISCOVER et0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER sit0 to 255.255.255.255 port 67 interval 11
send_packet: Netword is down
DHCPDISCOVER eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER lo to 255.255.255.255 port 67 interval 11
DHCPDISCOVER sit0 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
DHCPDISCOVER et0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER loto 255.255.255.255 port 67 interval 17
DHCPDISCOVER sit0 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
DHCPDISCOVER eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER lo to 255.255.255.255 port 67 interval 15
DHCPDISCOVER eth0 255.255.255.255 port 67 interval 13
DHCPDISCOVER sit0 to 255.255.255.255 port 67 interval 10
send_packet: Network is down
DHCPDISCOVER et0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER lo to 255.255.255.255 port 67 interval 7
DHCPDISCOVER sit0 to 255.255.255.255 port 67 interval 18
send_packet: Network is down
DHCPDISCOVER lo to 255.255.255.255 port 67 interval 4
No HDCPOFFER received.
No working leases in persistent database-sleeping.
/sbin/dhcpclient-script:configuration for sit0 not found.
then I guess that is the error, because I not recieve sucessfull from the application.

when i do ifconfig, is listed eth0 (without the line inet addr with the line inet6), et0:9 (with the line inet addr and without the line inet6) and lo (with inet and inet6 addr).


I guess that is the problem, you know how to solve it?


I think there are problems... because say that network is down, when in fact, is showed in the windows machine that the lan is up or at less detect when the cable is connected or disconnected....






------------------------------------------------

Also I add that I not have the command dhcp, it say command not found when root mode.

Last edited by hgb; 06-15-2004 at 01:22 PM.
 
Old 06-15-2004, 04:41 PM   #3
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
Also I recollect a little more information:

>ifup eth0
Determining IP information for eth0.... done.
/sbin/ifup: line 427: Hangup /etc//init.d/tmdns reload>/dev/null/ 2>&1


Also:

>ifstatus
lo: not supported
eth0:link beat detected
sit0:not supported



Hope with this you can give me a solution....

:S


[added]Also

service network restart

work perfectly, not errores showed (some like):

Desactivating interfaz eth0: [OK]
Desactivating interfaz eth0: [OK]
Configuring parameters: [OK]
Activating interfaz loopback: [OK]
Activating interfaz loopback: [OK]

Last edited by hgb; 06-15-2004 at 04:58 PM.
 
Old 06-15-2004, 08:26 PM   #4
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
Hi all, I supose that after a restart some things work, for example:

I have actually a suposed to be correct address
Code:
inet addr:192.168.0.97  Bcast:192.168.0.255  Mask:255.255.255.0
Also dhclient now return:

Code:
sit0:unknow hardware address type 776
Corrupt lease file - posible data loss!
/sbin/dhclient-script: configuration for sit0 not found.
sit0: unknow hardware type 776
Listening on LPF/sit0/
Sending on LPF/sit0/
Listening on LPF/lo/
Sending on LPF/lo/
Listening on LPF/eth0/00:d0:09:4e:ca:9e
Sending on LPF/eth0/00:d0:09:4e:ca:9e
Sending on Socket/fallback
receive_packet failed on sit0: Network is down
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on sit0 to ....
send_packet: Network is down
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.57 -- renewal on 273 seconds
Also aparently I can see now in the win machine the workgroup mdkgroup, also I can not access the folders :S


But my other problem (apart of configure access to folders) is that I can not do ping to nothing, except for 127.0.0.1 or localhost, all the others I wait for some time and no answer (also nothing is send like when localhost), then I stop ping with CTRL+C, no relport is gived like when stoped with local host... ie sended 10 packets recieved 10 packets without any lost.

Also the modem connection of winXP is shared!


Apart, who can give me a good direction for see how to access the win machine (diferent work group) and how I give access to the win machine to the linux machine, I can wait for this answer, step by step... I guess .


What is the problem now?


..... >ifup eth0 terminate without any message in short time, >ifstatus is still showind the same messages.

A yes, ping say me unknow host .. after some time...., also konqueror and mozilla say that cannot open the page, after some time.

Last edited by hgb; 06-15-2004 at 08:28 PM.
 
Old 06-15-2004, 11:41 PM   #5
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Quote:
Also aparently I can see now in the win machine the workgroup mdkgroup, also I can not access the folders :S
On the linux machine, if you open a web browser and go to https://127.0.0.1:10000, you can use webmin (it should be installed by default). Log in as root, click Servers then Samba Windows File Sharing then Windows Configuration. Set the workgroup to be the same as the windows machine and set the security level to Share Level. Click Save to return to the previous screen.

To create a share, click Create A New File Share, enter a name and directory, then click Save. In the list of shares, your new share should appear. Click on it, then click on Security and Access Control and set Guest Access to Yes. Click Save to return to the Edit File Share screen and click Save again. Scroll to the bottom of the screen and click Restart Samba Servers. This should allow the windows computer to see all the files in the shared directory.

Note: This probably isn't the best way of setting up Samba, but I think it'll work.

Can I see the entire output of these commands:
  • ifconfig eth0
  • route -n

--mascdman
 
Old 06-16-2004, 01:00 PM   #6
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
I will try that after, need to go to school


the output is:

Code:
#ifconfig eth0
eth0     Link encap:Ethernet  HWaddr 00:D0:09:4E:CA:9E
          inet addr:192.168.0.97  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2d0:9ff:fe4e:ca9e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1583 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1980 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:736211 (718.9 Kb)  TX bytes:756641(738.9 Kb)
          Interrupt:10 Base address:0xd800

#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 eth0
 127.0.0.0        0.0.0.0               255.0.0.0       U     0      0        0 lo
 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0


Last edited by hgb; 06-16-2004 at 01:03 PM.
 
Old 06-16-2004, 10:43 PM   #7
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Well, it looks like the linux machine should be sending packets through your WinXP machine. From what you've said before, none of the following work?You could also check that iptables isn't doing anything by running iptables -L as root. You should get something like
Code:
[root@verandi mascdman]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
--mascdman
 
Old 06-17-2004, 12:10 PM   #8
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
ping 192.168.0.1

work, also i ping myself with localhost, at first glance it not work, total lost of packets, but after I go to System -> configuration -> network -> monitor connections, and after I hit the button connect, ping localhost work perfect. Also ping 192.168.0.1 still working with that.

ping 216.239.57.99 dosent work, nothing sended and nothing received for much time, and I stop manually (CTRL+C)

ping www.google.com after little time say me unknow host www.google.com

The output of iptables -L is exactly the output that you write before (that is good or bad?)

Have a nice day or night.

Last edited by hgb; 06-17-2004 at 12:12 PM.
 
Old 06-17-2004, 10:08 PM   #9
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
Okay, so you can ping to yourself and to the WinXP machine, but the windows machine doesn't appear to be forwarding anything: the ping 216.239.57.99 shows nothing because the packets aren't getting through and ping www.google.com returns unknown host because DNS queries aren't being answered.

The iptables output is good for now -- the firewall is off and isn't interfering with the connection.

Reading back over your posts, I noticed two things:
Quote:
(I need say that I previously have mdk 9 and work fine)
Quote:
Also the modem connection of winXP is shared!
So you had Mandrake 9 installed and the WinXP machine sharing the connection and everything worked fine? But after installing Madrake 10, it doesn't work? Nothing else about the network changed?

From what I've seen on various sites, after setting up ICS on WinXP you just have to give client computers a 192.168.0.x IP address and point their default gateway to the WinXP machine and everything just works. You may need to manually configure the linux machine to use your ISPs DNS servers though. Run ipconfig /all on the WinXP machine and add the DNS server IP addresses to /etc/resolv.conf as
Code:
nameserver first_ip_address
nameserver second_ip_address
From what you've posted, it looks like the linux machine is correctly configured. The only other ideas I have are double-checking that ICS is set up on the ethernet card connected to the modem and rebooting both computers (make sure the WinXP machine has finished booting before starting the linux machine).

--mascdman
 
Old 06-17-2004, 10:51 PM   #10
hgb
Member
 
Registered: Jun 2004
Distribution: Mandrake 10, SUSE 10.x, DEbian
Posts: 125

Original Poster
Rep: Reputation: 15
Code:
Configuración IP de Windows

        Nombre del host . . . . . . . . . : scnt-3000
        Sufijo DNS principal  . . . . . . :
        Tipo de nodo . . . . . . . . . .  : desconocido
        Enrutamiento IP habilitado. . . . : Sí
        Proxy de WINS habilitado. . . . . : Sí

Adaptador Ethernet Conexion ForMDK          :

        Sufijo de conexión específica DNS :
        Descripción. . . . . . . . . . .  : Realtek RTL8169/8110 Family Gigabit Ethernet NIC
        Dirección física. . . . . . . . . : 00-E0-4C-BB-C0-AB
        DHCP habilitado. . . . . . . . .  : No
        Dirección IP. . . . . . . . . . . : 192.168.0.1
        Máscara de subred . . . . . . . . : 255.255.255.0
        Puerta de enlace predeterminada   :

Adaptador PPP one               :

        Sufijo de conexión específica DNS :
        Descripción. . . . . . . . . . .  : WAN (PPP/SLIP) Interface
        Dirección física. . . . . . . . . : 00-53-45-00-00-00
        DHCP habilitado. . . . . . . . .  : No
        Dirección IP. . . . . . . . . . . : 200.65.174.56
        Máscara de subred . . . . . . . . : 255.255.255.255
        Puerta de enlace predeterminada   : 0.0.0.0
        Servidores DNS . . . . . . . . . .: 200.33.146.202
                                            200.33.146.194
        NetBios sobre TCPIP. . . . . . .  : Deshabilitado

mmm, watching at the output, O see that is not DHCP.... then the problem, belong to windows i guess


Last edited by hgb; 06-17-2004 at 10:54 PM.
 
Old 06-17-2004, 11:56 PM   #11
mascdman
Member
 
Registered: Jun 2004
Location: Canada
Distribution: Ubuntu 6.06 LTS
Posts: 152

Rep: Reputation: 30
I have a couple other ideas. On the linux machine, try
Code:
ping 200.65.174.56
Does that work?

Also, configure the WinXP machine to act as a DHCP server and configure the linux machine to use it.

One of the sites I ran across mentioned that the XP firewall may be getting in the way.
Quote:
To disable XP's software firewall, click on "Start" then "My Network
places", then "View Network connections" on the top left pane, then click on
your "Local Area Connection" to hi-light it, click "Change Settings of this
connection" on the top left pane, click on the "Advanced" tab on top and
uncheck the box next to "Protect my computer and network...". There you go,
XP's software firewall is disabled!
--mascdman
 
  


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
Still Have Problems with MDK 10.1 elekt Mandriva 10 01-26-2005 01:00 PM
MDK 10.1 problems kvtournh Mandriva 3 09-22-2004 03:16 PM
What's with all the MDK 10.0 problems? Micro420 Mandriva 10 07-05-2004 08:25 AM
Problems with MDK 10.0 dominant Mandriva 17 03-14-2004 03:51 AM
broadcom 802.11g and mdk 9.2 can't connect to LAN jrhessey Linux - Wireless Networking 5 03-03-2004 09:43 AM

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

All times are GMT -5. The time now is 12:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration