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, 18.104.22.168, 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 22.214.171.124 netmask 255.255.255.0 broadcast 126.96.36.199
# add a network route to point to it:
/sbin/route add -net 188.8.131.52 device eth0
# Add a default route.
/sbin/route add default gw 184.108.40.206
# eth1 is the Win95 local lan side:
/sbin/ifconfig eth1 220.127.116.11 netmask 255.255.255.0 broadcast 18.104.22.168
arp -s 22.214.171.124 00:10:4B:1E:A4:1B pub
/sbin/route add -host 126.96.36.199 device eth1
/sbin/route add -host 188.8.131.52 device eth1
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org