[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: faking the hardware address?

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,, 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 netmask broadcast
# add a network route to point to it:
/sbin/route add -net device eth0
# Add a default route.                             
/sbin/route add default gw

# eth1 is the Win95 local lan side:

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


To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: