Setting up local network
Hi,
I'm trying to set up a local network between one computer running on Debian Etch and another on Ubuntu Dapper. This should be easy enough to do, but neither computer sees the other. Here is the procedure I followed, did I miss something? In the Debian machine I did system --> networking and changed the properties on eth0 to the following: Configuration: static IP address: 192.168.0.1 Subnet mask: 255.255.255.0 I validated this and then set up the Ubuntu machine as follows: Configuration: static IP address: 192.168.0.2 Subnet mask: 255.255.255.0 Gateway address: 192.168.0.1 When I do a ping on the Debian machine towards the Ubuntu machine, this is what I get: Code:
james@debian:~$ ping -c5 192.168.0.2 Code:
debian:/home/james# ifconfig I don't know if this is of importance, but when the Debian computer boots in verbose mode, I get a message that DHPDISCOVER is looking at eth1 on 255.255.255.255 on various ports, and fails to find anything. Shouldn't it look on 255.255.255.0? Incidentally, I don't know if this is of importance but before I attempted to set up the network, I got the same message, but rather than looking at eth1 it looked at eth0. Perhaps I should add that I had managed to establish this connection when both computers were Windows, and I also managed it between Windows and Linux, but since I got rid of Windows I have never been able to connect these two computers. This problem seems very simple to me, but I haven't found a solution to it by Googling around or by looking at the previous threads on this forum. Thanks in advance for your help James |
might I suggest running iptables -L on both machines to see if a firewall is enabled ?
The following shows output on a system with no firewall rules configured.. Code:
it-etch:/usr/src/linux# iptables -L While there is practically ZERO traffic over eth0 (192.168.0.1) RX bytes: (0.0 b) TX bytes: (11.8 KiB) It's hard for me to guess how you have everything connected.. how are the PC's in the 192.168.0.0 subnet connected together ? Via a switch, crossover cable, other ? |
hey,
Firstly the DHPDISCOVER problem shouldn't matter, as you have no DHCP server and you are using static ip addresses. What happens when you ping the Ubuntu machine towards the Debian machine? Do you have a firewall that is blocking the packets? |
OK, here's what I get when I do iptables -L on the Debian machine:
Code:
Chain INPUT (policy ACCEPT) As for the ping command on the Ubuntu machine, this is what I get: Code:
james@james1:~$ ping -c5 192.168.0.1 The two computers are simply connected via a crossover lead. As for DHCPDISCOVER, if it's not needed, is there a way of stopping Debian from looking for it on boot up? It at least doubles the start up time. |
Just spotted something else that is interesting...
Quote:
do you truly have 3 ethernet cards in that machine ? lspci to verify the number of NIC's cat /var/log/dmesg | grep eth - see what eth device is assigned to what hardware |
I'll tell you the whole story! I had a few problems when I was installing Debian, as it asked me questions I found difficult to answer about the network. I'm not sure I got them all right as I'm very weak in this area. Also, I had a funny business with the Internet connection not coming on automatically on start up. I played around with it for a while until I got it working. Perhaps I made a mess of everything - it wouldn't be the first time!
As for the Ethernet card business, this has always struck me as odd. As far as I know, there are only two Ethernet cards in this machine. Well, there were last time I looked! But where on earth does eth2 come from? And Debian isn't alone in flagging up eth2 - I also had it on Mandriva and, I think the other distros I've tried on this machine. |
So did you run the commands I posted ? the results may contain the answers you seek....
|
My apologies, farslayer, I didn't see your commands at the bottom of your post. Guess that's what comes of my doing too many things at once. Well, here's the Ispci command. I don't know what it all means!
Quote:
Code:
debian:/home/james# cat /var/log/dmesg | grep eth |
Quote:
Looks like mine when I put my Wireless in monitor mode. Could it be firewire, bluetooth, usb? |
Quote:
|
From the LSPCI command these are your two onboar Ethernet controllers..
Quote:
Quote:
I'm not sure why it's listing eth0 next to a Realtec chip AND the firewire entry.. It looks like your REAL Network interfaces are eth1 and eth2 and the Firewire has taken over the eth0 Position. You may want to edit your /etc/network/interfaces file and see how that goes.. maybe something like this.. Code:
it-etch:/usr/src/linux# cat /etc/network/interfaces |
Right, now I've got another problem. I cannot run the text editor:
debian:/home/james# cp /etc/network/interfaces /etc/network/interfaces.backup debian:/home/james# kedit /etc/network/interfaces Xlib: connection to ":0.0" refused by server Xlib: No protocol specified kedit: cannot connect to X server :0.0 debian:/home/james# kate /etc/network/interfaces Xlib: connection to ":0.0" refused by server Xlib: No protocol specified kate: cannot connect to X server :0.0 What's going on here? |
Install package: "sux" and then sux kate blah.txt
Or use "sudo" and then sudo kate blah.txt |
OK, panic over. I downloaded sux and then ran xhost local:root. Now to work...
Before I change anything, I'd like you to see what's in /etc/network/interfaces. Does it look right? Quote:
|
Nein, not good. Eth0 is your firewire!
eth1 and eth2 are your ethernet wire interfaces (you don't need the xhost for sux, otherwise sux becomes useless) |
All times are GMT -5. The time now is 09:09 PM. |