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

Re: Connecting to a different LAN



On Sat, May 09, 1998 at 12:04:25PM +0100, Ian Lynagh wrote:
> In article <[🔎] nIJs4AAhzvU1EwYS@lynagh.demon.co.uk>, Ian Lynagh
> <ian@lynagh.demon.co.uk> writes
> >
> >Once I install Debian I hope to set my laptop up so that the network
> >card has IP 192.168.37.mumble, mask 255.255.255.0. It will also connect
> >to the 'net via the modem.
> >
> >However, if I take it to a friends LAN which uses IPs 1.0.x.y then will
> >I need to change anything? What's the best way of doing this?
> 
> Something I probably should have mentioned, I don't want my IP address
> to change. I want to be able to ping the 1.0.x.y addresses from my
> 192.168.37.mumble address and vica versa.

In /etc/init.d/network, add a route to 1.0.x.y on your ethernet with no
gateway. Something like

route add -net 1.0.x.0 netmask 255.255.255.0 eth0

should probably do it. Your friend will need to do the same on all his
hosts, or at least on his gateway, if he has one.


Hamish
-- 
Hamish Moffatt, hamish@debian.org, hamish@rising.com.au, hmoffatt@mail.com
Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org


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


Reply to: