Nils Rennebarth wrote:
> 
> On Thu, May 14, 1998 at 10:30:33AM -0700, Alan Su wrote:
> > My linux box is connected to a campus network, and i'd like to provide
> > access to that network to a machine connected over a serial/modem line
> > via PPP. 
> > My question is: can I fake this?

> Yes. In short: use the proxyarp option of pppd
 
Nils, I'm trying to do the _exact_ same thing, except instead of PPP I
have two ethernet interfaces.

I believe my setup is correct, and I believe that it doesn't work
because the "campus network" in my case is a cable modem and the cable
company hasn't properly set me up to use the 5 static IP addresses that
they have given me to use.

I actually just need three IP's: two for my ethernet cards and one for
the machine on the local lan.

Here I've numbered my IPs just like your campus example, but I've added
the third address, 1.2.3.3, for my second ethernet card (for my local
lan) where the other fellow is using PPP.

If you don't mind eyeballing this, I'd be very grateful!

#eth0 is the cable modem side. The hardware address in the arp
#command is the one from my eth0 interface (the cable modem side).

#  configure the IP address, netmask and broadcast address.
/sbin/ifconfig eth0 1.2.3.1 netmask 255.255.255.0 broadcast 1.2.3.255
# add a network route to point to it:
/sbin/route add -net 1.2.3.0 device eth0
# Add a default route.                             
/sbin/route add default gw 1.2.3.254

# eth1 is the Win95 local lan side:

/sbin/ifconfig eth1 1.2.3.3 netmask 255.255.255.0 broadcast 1.2.3.255
arp -s 1.2.3.2 00:10:4B:1E:A4:1B pub
/sbin/route add -host 1.2.3.2 device eth1
/sbin/route add -host 1.2.3.3 device eth1

-- 
...RickM...


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to