On Sat, May 09, 1998 at 12:04:25PM +0100, Ian Lynagh wrote:
> In article <[EMAIL PROTECTED]>, Ian Lynagh
> <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to