LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 linux machine network, one headless. (https://www.linuxquestions.org/questions/linux-networking-3/2-linux-machine-network-one-headless-324762/)

whansard 05-18-2005 02:17 PM

2 linux machine network, one headless.
 
I want to set up a second computer behind my main one that really has nothing but a power cable and the crossover network cable going to it. I want to use the second machine only from the first, and may occasionally run windows for a few minutes on the second machine. The second machine will be for cpu intensive tasks mostly, and i would like to control them from a console or X term. I may or may not wish to let the second machine access the internet through my dsl connection. The second machine will be off a lot of the time, and i will only turn it on when i need it. Maybe for making a half dozen divx movies in a row or that sort of thing.
I don't even know most of terms i would need to know to search for howto's. Please point me to a howto that is for what i want to do or close. Thanks.

Edit: I was just thinking of some more things that would be relevant. I'm using an old heavily modified redhat 6.2 on my main machine, with a stripped down kernel, so if i need any extra kernel modules built in for this, i would need to know.

Edit again: I think I've got what I need. I guess I'll see.

yanix 05-19-2005 07:53 AM

You should probably look for topics for setting up a linux box as a router.

If you set up a second network card on your first machine to your second,
you can control internet access to the second machine by making your first machine a router.
(Assuming your first machine allways can get to the internet)

enabling/disabling ip forwarding on the first machine can be done by
setting the file /proc/sys/net/ipv4/ip_forward to 0 (disable) or 1 (enable).
(Not sure if its the same for red hat, Im on debian)

whansard 05-21-2005 11:12 AM

I've absolutely exhausted myself over 3 days. the sshd crap and xforwarding only took a day. I've spent so many hours trying to get nfs up it's pathetic. I bet 20 hours. I just keep getting"mount: RPC: Program not registered". I've spent the past few hours trying to get coda up, but no go.
here's nfs. 1st machine
rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100005 1 udp 796 mountd
100005 1 tcp 799 mountd
100005 2 udp 796 mountd
100005 2 tcp 799 mountd
100005 3 udp 796 mountd
100005 3 tcp 799 mountd

second:
rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
100003 2 udp 2049 nfs
100003 2 tcp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100005 1 udp 803 mountd
100005 1 tcp 806 mountd
100005 2 udp 803 mountd
100005 2 tcp 806 mountd
100005 3 udp 803 mountd
100005 3 tcp 806 mountd

machine i'm trying to share, which doesn't have access to the internet.
cat exports
/ 192.168.10.100(rw)

i've changed 100 things and keep getting
mount: RPC: Program not registered

TigerOC 05-21-2005 03:15 PM

Just a few hints. Work through this article step by step. It looks like you have rpc working fine. I got stuck at the same point and found that adding the netmask to the export address solved the problem.


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