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

Re: Connecting to a different LAN




Hamish Moffatt writes
> 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.

If the laptop uses a PCMCIA network card, /etc/init.d/network should 
only contain entries for local loopback. The real work is done in
/etc/pcmcia/network.opts . You can have different setups using different
schemes, see section 5.2 of the PCMCIA-HOWTO for details.


Dave Thayer
Denver, Colorado USA
dthayer@netcom.com david.thayer@state.co.us


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


Reply to: