LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Tow linux boxes can't ping each other (http://www.linuxquestions.org/questions/linux-networking-3/tow-linux-boxes-cant-ping-each-other-185576/)

dvddecrypter 05-25-2004 05:57 AM

Tow linux boxes can't ping each other
 
System 1 is called mepis, it has a modem and a nic, running mepis
System 2 is called mepisdell it has a nic, running mepis
Both systems are connected via a dumb hub.
I have successfully setup networking to the point that I can connect to the internet via kppp on mepis and acces the internet on mepisdell, using mepis as a gateway. The problem is that I am having trouble getting NFS to work. I think I have tracked the problem down to the fact that mepis cannot ping mepisdell by name or ip. mepisdell can ping mepis via ip and name.

Here is all the info I can dig up on mepis:
root@17[eatoncl]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:5E:E1:BE
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe5e:e1be/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:57890 errors:0 dropped:0 overruns:1 frame:0
TX packets:64854 errors:0 dropped:0 overruns:0 carrier:0
collisions:1080 txqueuelen:1000
RX bytes:5766447 (5.4 MiB) TX bytes:78771817 (75.1 MiB)
Interrupt:10 Base address:0x1080

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:15305 errors:0 dropped:0 overruns:0 frame:0
TX packets:15305 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:8167926 (7.7 MiB) TX bytes:8167926 (7.7 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:65.132.48.5 P-t-P:63.152.1.89 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1359 errors:0 dropped:0 overruns:0 frame:0
TX packets:1383 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1076555 (1.0 MiB) TX bytes:175123 (171.0 KiB)

root@17[eatoncl]#
root@17[eatoncl]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
nas4.little-roc * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default nas4.little-roc 0.0.0.0 UG 0 0 0 ppp0
root@17[eatoncl]#
root@17[eatoncl]# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
root@17[eatoncl]#
root@17[eatoncl]# dnsdomainname
root@17[eatoncl]#
root@17[eatoncl]# domainname
bash: domainname: command not found
root@17[eatoncl]#
root@17[eatoncl]# hostname
mepis
root@17[eatoncl]#
root@17[eatoncl]# showmount
Hosts on mepis:
root@17[eatoncl]#

If anyone could figure this out I'd be gratefull.

LuggerHouse 05-25-2004 07:03 AM

Plz post some more infos:

/sbin/ifconfig
route
from mepisdell

THansk!

ashjam10 05-25-2004 07:05 AM

Sounds like mepisdell may have a firewall running which is unnecessary and may block your pings. You'll see this same problem if you enable the firewall on a Windows XP machine that gets it's internet connection from another XP machine.

dvddecrypter 05-25-2004 06:34 PM

that helped
 
Guarddog was enabled on mepisdell, thanks for that suggestion. I can now ping mepisdell with mepis However I still can't get a share mounted with NFS:

root@3[eatoncl]# hostname
mepisdell
root@3[eatoncl]# mount /mepis
mount: mount point /mepis does not exist
root@3[eatoncl]# cat /etc/fstab
/dev/hda3 / ext3 defaults,noatime 1 1
/dev/hda2 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
none /dev/pts devpts mode=0622 0 0
/dev/hda4 /home ext3 defaults,noatime 1 2
# Dynamic entries
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000 0 0
/dev/hdb1 /mnt/hdb1 vfat noauto,users,exec,umask=000 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0
192.168.0.2:/ /mepis nfs rsize=1024,wsize=1024,noauto 0 0
root@3[eatoncl]#
root@3[eatoncl]# cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/ 192.168.0.2(rw)
root@3[eatoncl]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:E9:E1:C5:2B
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15035 errors:0 dropped:0 overruns:0 frame:0
TX packets:13234 errors:0 dropped:0 overruns:0 carrier:0
collisions:459 txqueuelen:1000
RX bytes:15096136 (14.3 MiB) TX bytes:1597486 (1.5 MiB)
Interrupt:3 Base address:0xdc40 Memory:ff6fe000-ff6fe038

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:277 errors:0 dropped:0 overruns:0 frame:0
TX packets:277 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:56236 (54.9 KiB) TX bytes:56236 (54.9 KiB)

root@3[eatoncl]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default mepis 0.0.0.0 UG 0 0 0 eth0
root@3[eatoncl]#

I'll make another post with /etc/fstab and /etc/exports from the other machine.

dvddecrypter 05-25-2004 06:36 PM

mepis exports
 
eatoncl@21[eatoncl]$ hostname
mepis
eatoncl@21[eatoncl]$ cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/ 192.168.0.1(rw)
eatoncl@21[eatoncl]$ cat /etc/fstab
/dev/hda1 / ext3 defaults,noatime 1 1
/dev/hda2 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
none /dev/pts devpts mode=0622 0 0
/dev/hda3 /home ext3 defaults,noatime 1 2
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/floppy /mnt/floppy auto users,exec,sync 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0

192.168.0.1:/ /mepisdell nfs rsize=1024,wsize=1024,noauto 0 0eatoncl@21[eatoncl]$

dvddecrypter 05-26-2004 08:54 PM

bump
 
Anyone have a suggestion?

dvddecrypter 05-29-2004 07:32 PM

?
 
I hate to be negative but someone has to know what is wrong here.

If NFS works at all, it shoudl be working here, or I"m missing something simple.

It seems the majority of the time I ask a question about Linux I get a quick responce that does not help, like "Go look at the manual" then when I come back with everything that is requested and then some, I get complete silence.

So noone on linuxquestions.org has any clue how NFS works?

esears 05-30-2004 03:48 AM

root@3[eatoncl]# mount /mepis
mount: mount point /mepis does not exist
root@3[eatoncl]# cat /etc/fstab
/dev/hda3 / ext3 defaults,noatime 1 1
/dev/hda2 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
none /dev/pts devpts mode=0622 0 0
/dev/hda4 /home ext3 defaults,noatime 1 2
# Dynamic entries
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000 0 0
/dev/hdb1 /mnt/hdb1 vfat noauto,users,exec,umask=000 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,users,exec,ro 0 0
192.168.0.2:/ /mepis nfs rsize=1024,wsize=1024,noauto 0 0


Ok, just a simple question. When you did 'mount /mepis' it says taht mount point doesn't exist. This would imply that there is no directory /mepis on your mepisdell comp. Make sure this directory exists first and try again.

dvddecrypter 05-30-2004 07:22 AM

yay
 
That's all I needed, it works like a champ now. THank you very very much for your answer.


All times are GMT -5. The time now is 04:43 AM.