Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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)
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
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).
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.