Networking Forums

Networking Forums > Computer Networking > Linux Networking > Switch network configuration on demand

Reply
Thread Tools Display Modes

Switch network configuration on demand

 
 
Kevin =?ISO-8859-15?Q?B=F6rgens?=
Guest
Posts: n/a

 
      01-27-2005, 05:57 PM
Hi

> 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...


Yes, I think so. The modem is just a normal network device. So you can
connect the two computers and the modem with a hub/switch. Of course only
one computer can use the modem at once.

HTH,
Kevin
 
Reply With Quote
 
 
 
 
prg
Guest
Posts: n/a

 
      01-27-2005, 07:16 PM

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

 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      01-27-2005, 09:47 PM
F.P. Laussy wrote:

> 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)
>
> 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...


The best solution, is to get one of those cheap firewall/router boxes. It
will allow multiple computers to share the ADSL modem, and also add
significantly to security.

Also, if you must retain a static IP for work and use DHCP elsewhere, you
can use profiles in Linux, to enable either configuration.

 
Reply With Quote
 
F.P. Laussy
Guest
Posts: n/a

 
      01-27-2005, 11:07 PM
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)

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...

Cheers,

F.P.L.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Layer 3 Switch configuration (Netgear) FenderAxe Network Routers 3 12-21-2009 04:05 AM
Network Configuration For Connecting Group Of Workstations To Server Via Switch Silom Windows Networking 3 01-23-2007 06:04 AM
Demand-dial VPN interfaces configuration Bancal Windows Networking 1 11-10-2005 12:56 AM
netsh - IP configuration for demand-dial interfaces? Juan Ignacio Gelos Windows Networking 1 10-04-2004 02:23 PM
netsh - IP configuration for demand-dial interfaces? Juan Ignacio Gelos Windows Networking 1 09-29-2004 09:15 PM



1 2 3 4 5 6 7 8 9 10 11