I have researched the networking HOWTO and searched the posts to no avail.
Here is the problem:
I have 2 machines and an Adelphia cable internet connection. My main machine is running Mandrake 9.2 with 2 ethernet cards eth0 and eth1, connected to the net and both cards are working.
The other machine is running Slackware 9.1 with 1 ethernet card and it works fine.
I gave the mandrake machine an ip address of 192.168.1.1 and the slack machine an ip address of 192.168.1.2 like this:
me@slackware:# ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
me@mandrake:# ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up
Then
me@slackware:# route add -net 192.168.1.0 netmask 255.255.255.0 eth0
me@slackware:# route add default gw 192.168.1.1 eth0
Slackware:
/etc/hosts
127.0.0.1 localhost loopback
192.168.1.2 slackware.home.org slackware
Mandrake:
/etc/hosts
127.0.0.1 localhost loopback
192.168.1.1 mandrake.home.org mandrake
/etc/resolv.conf
domain home.org
search bflony.adelphia.net local
nameserver 127.0.0.1
nameserver 68.168.224.165
nameserver 68.168.224.162
me@slackware:# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:E6:3B:82:87
inet addr:24.50.126.45 Bcast:24.50.126.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22915 errors:0 dropped:0 overruns:0 frame:0
TX packets:2519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2862738 (2.7 Mb) TX bytes:318664 (311.1 Kb)
Interrupt:5 Base address:0xd800
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:466 errors:0 dropped:0 overruns:0 frame:0
TX packets:466 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:31336 (30.6 Kb) TX bytes:31336 (30.6 Kb)
me@mandrake:# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:E6:3B:82:87
inet addr:24.50.126.45 Bcast:24.50.126.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22915 errors:0 dropped:0 overruns:0 frame:0
TX packets:2519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2862738 (2.7 Mb) TX bytes:318664 (311.1 Kb)
Interrupt:5 Base address:0xd800
eth1 Link encap:Ethernet HWaddr 00:80:29:65
C:BF
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:120 errors:0 dropped:0 overruns:0 frame:0
TX packets:59 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7200 (7.0 Kb) TX bytes:2478 (2.4 Kb)
Interrupt:11 Base address:0x4000
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:466 errors:0 dropped:0 overruns:0 frame:0
TX packets:466 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:31336 (30.6 Kb) TX bytes:31336 (30.6 Kb)
When I try and connect to the mandrake box, the RX packets on eth1 go up, but I can't connect.
My questions are:
1. Why can't I get the two machines to ping or talk to each other?
2. How do I set it up so I may connect to the net with the slackware box?
3. What programs are good for talking to another machine? (ssh, telnet, webmin, nfs)
Thanks,
JL