F.P. Laussy wrote:
> Hi,
>
> I've got a laptop, which is configured to be hooked to a LAN with a
static
> IP (set in /etc/network/interfaces). I would like, however, to
connect also
> from outside my working place, for instance at home where I have ADSL
> connection with dynamic IP, or at some other LAN in another place.
How
> could this be done easily? (without messing myself with the config
files,
> of course, in which case I understand this can be done easily, just
this is
> awkward and time consuming)
Try this for starters:
http://tuxmobil.org/Mobile-Guide/mob...html#id2527765
If your laptop distro supports net profiles (Suse, Redhat/FC, others?)
you can choose which one to use -- much easier with static network
setup at office and home.
> By the way my DSL modem has only one plug, is there a way I can hook
the
> laptob without disconnecting the fix computer? Without changing
modem, of
> course... I strongly surmise the answer is no, but just in case...
ISP -> dsl modem ->
|
DesktopPC
(gets dynamic IP via dhcp)
(provides NAT via iptables for laptop)
(and implements a firewall which you need)
(/proc/sys/net/ipv4/ip_forward = 1)
|
LaptopPC
(uses static home profile)
Despite what you may have heard, they can both use the modem at the
same time with appropriate one-time config setup. Desktop needs an
extra nic to provide routing to laptop.
Easier to get a router/switch that gets assigned the dynamic IP from
ISP and NATs and forwards for both the PCs (can even provide
config-setup of PCs in router admin page though it will be profile dumb
re: your laptop). These always(?) include a firewall also. Linksys
uses an embedded Linux for its OS. But ask for opinions about "best"
router to use.
hth,
prg
email above disabled