Networking Forums

Networking Forums > Computer Networking > Linux Networking > Dual-boot: Different static IPs?

Reply
Thread Tools Display Modes

Dual-boot: Different static IPs?

 
 
Nick Coleman
Guest
Posts: n/a

 
      09-19-2003, 04:11 AM
I have a small lan behind a dsl modem/router, with all machines using static
IPs, I guess from their host file.

I'd like a dual-boot Win/linux machine to use different IPs according to
whether it is in Win98 or Linux. Is it as simple as setting a different IP
in the host files?

(I want to block most outbound ports when running Win98 but not when in
Linux, and thought the easiest way is to assign the machine a different IP
address when in Win and then block all out ports on the router for that IP
address.)

As you can probably tell, I'm a bit of a network newbie.

Thanks,
Nick
 
Reply With Quote
 
 
 
 
mr_scary
Guest
Posts: n/a

 
      09-19-2003, 01:52 PM
Nick Coleman wrote:
> I have a small lan behind a dsl modem/router, with all machines using static
> IPs, I guess from their host file.
>
> I'd like a dual-boot Win/linux machine to use different IPs according to
> whether it is in Win98 or Linux. Is it as simple as setting a different IP
> in the host files?


No, the host file only associates a name with an
address. You must assign the address elsewhere.

 
Reply With Quote
 
Brian Key
Guest
Posts: n/a

 
      09-19-2003, 07:23 PM
On Fri, 19 Sep 2003 19:35:11 +0000, Jeroen Geilman wrote:

[snips]
> ObBTW : WHY do you want different IP addresses ? There's absolutely no
> need to...you'll only ever run ONE OS at a time!
>

To quote the OP:
"(I want to block most outbound ports when running Win98 but not when in
Linux, and thought the easiest way is to assign the machine a different IP
address when in Win and then block all out ports on the router for that IP
address.)"


B.
--
Quantum Mechanics: the dreams that stuff is made from.

 
Reply With Quote
 
Jeroen Geilman
Guest
Posts: n/a

 
      09-19-2003, 07:35 PM
mr_scary wrote:

> Nick Coleman wrote:
>> I have a small lan behind a dsl modem/router, with all machines using
>> static IPs, I guess from their host file.


Oowwwwwrrongski!

The hosts file defines address <-> name mappings, nothing else.

>> I'd like a dual-boot Win/linux machine to use different IPs according to
>> whether it is in Win98 or Linux. Is it as simple as setting a different
>> IP in the host files?

>
> No, the host file only associates a name with an
> address. You must assign the address elsewhere.


And then again, yes, it is as simple as that, except not in the hosts file.

Not too helpful there, scary...

In win98 : open up the network properties box (look arond..), and open the
properties for TCP/IP networking (last entry usually)

Set your IP address and mask here, also set the gateway to the address of
the dsl router - or else no internet!

In linux, you configure the network card(s) with ifconfig, but without
knowing which distro you use it's a little hard to tell you exactly what
you need to do to make it permanent...

ObBTW : WHY do you want different IP addresses ?
There's absolutely no need to...you'll only ever run ONE OS at a time!

And another: HOW did you set up your network if you don't KNOW how to set up
IP addresses ?

If the addresses are static then YOU have assigned those addresses - there's
no other way.

--
Jeroen Geilman

Gentoo 1.4 rc4
 
Reply With Quote
 
a user
Guest
Posts: n/a

 
      09-19-2003, 08:45 PM
On 2003-09-19, Nick Coleman <(E-Mail Removed)> wrote:
> I have a small lan behind a dsl modem/router, with all machines using static
> IPs, I guess from their host file.
>
> I'd like a dual-boot Win/linux machine to use different IPs according to
> whether it is in Win98 or Linux. Is it as simple as setting a different IP
> in the host files?
>
> (I want to block most outbound ports when running Win98 but not when in
> Linux, and thought the easiest way is to assign the machine a different IP
> address when in Win and then block all out ports on the router for that IP
> address.)
>
> As you can probably tell, I'm a bit of a network newbie.
>

Yes. Have even done it "live" on adsl without a router but changed both
to have the same "real" ip as it became too confusing as to what was the
"real" ip for the computer.

As you have a router, just set win & linux with static ips as the router
should have a "static" ip range; if not, then just go into win registery
and change the "last ip" &/or the "request ip" under dhcp.
 
Reply With Quote
 
Nick Coleman
Guest
Posts: n/a

 
      09-19-2003, 08:53 PM
Jeroen Geilman wrote:
[a lot of useful stuff]

Thanks everyone, that did it. I forgot about ifconfig; I set it all up so
long ago and haven't needed to touch it since.
Nick
 
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
Setting up reservation for dual-boot PC in DHCP Hurricane Andrew Windows Networking 3 09-14-2007 09:15 PM
How to access internet with dual boot Linux / Windows? Broons Bane Linux Networking 6 02-05-2006 09:11 AM
Centrino, firmware, and dual boot? Peter Trei Linux Networking 3 04-27-2005 03:41 PM
dual boot giving different MAC addresses John Norvell Linux Networking 0 09-23-2003 09:30 PM
Can't ghost dual-boot system Sean Linux Networking 1 07-18-2003 02:18 AM



1 2 3 4 5 6 7 8 9 10 11