how to run an AFS file server on a specific ethernet card (in Debian)

Posted by listboss on Super User See other posts from Super User or by listboss
Published on 2012-10-01T11:05:36Z Indexed on 2012/10/01 21:41 UTC
Read the original article Hit count: 310

I have a linux box running Debian server with minimal number of packages (so no GUI for network management). The box has two ethernet cards, one of which (eth0) is connected to a Mac OSX computer using a cross-cable.

I can bring up eth0 and assign a static ip (10.10.11.16) to it. This way I can ssh to the box through the cross-cable. This is what I run on Linux box:

ifconfig eth0 10.10.11.16 netmask 255.255.255.0 up

I also installed/started a file server (AFS) on Debian. So far, the file server can only be accessed through eth1 which is exposed to my home LAN and www.

My goal is to set up the file server so that it's only visible through eth0. Is this possible? and if yes, how can I do it?

© Super User or respective owner

Related posts about linux

Related posts about networking