Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-2008, 09:23 AM
Mark Hobley
 
Posts: n/a
Whose LAN am I on? Is this LAN mine? (Laptop networking query)

I have a laptop computer that I use at home and on public networks. I am
wondering if there is some conventional tool (maybe using DHCP or some other
type of service) that identifies the network that I am on.

I need to know whether the laptop is on my home LAN, or an alien LAN.

I configured a Debian computer on a remote LAN last week, and it
automatically obtained a machine name (STUDENT-23). I don't know how it
obtained this, I certainly did not key it (There must be some sort of
automatic allocation of machine names (Is this an extension to DHCP?).

I was thinking of setting up a similar service on my home LAN.

I was thinking of configuring a custom service on a specific port, and
then using a query from the client, to obtain a "markhobley.yi.org"
respose for the local network, but I don't want to reinvent the wheel,
if services already provide LAN identification.

Please advise.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #2 (permalink)  
Old 07-01-2008, 09:55 AM
Sarah
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

Mark Hobley wrote:
> I configured a Debian computer on a remote LAN last week, and it
> automatically obtained a machine name (STUDENT-23). I don't know how it
> obtained this, I certainly did not key it (There must be some sort of
> automatic allocation of machine names (Is this an extension to DHCP?).


It *is* DHCP. You can configure networking so that it assigns a constant
hostname. I don't know how to do this on Debian.

> I was thinking of setting up a similar service on my home LAN.
>
> I was thinking of configuring a custom service on a specific port, and
> then using a query from the client, to obtain a "markhobley.yi.org"
> respose for the local network, but I don't want to reinvent the wheel,
> if services already provide LAN identification.


ISC dhcp is the "standard" package, but I think dnsmasq is much easier
to configure.

Sarah
Reply With Quote
  #3 (permalink)  
Old 07-02-2008, 10:09 PM
Mark Hobley
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

Sarah <uaqjtclv@yahoo.co.uk> wrote:

> It *is* DHCP. You can configure networking so that it assigns a constant
> hostname. I don't know how to do this on Debian.


Wow! I looked at the DHCP related documents, and you are right. It does
provide the option to set the hostname. Interestingly in the early days
of Microsoft Windows '95, I encountered a problem that required me to
study the DHCP telemetry. I found a problem with the hostname not being
available in the telemetry from the Unix based network. The
organizations affected by the problem took the decision to install a Microsoft
Windows NT based servers alongside their existing Unix networks to
manage their hosts. Interestingly, when I obtained that "STUDENT-23"
hostname, I was on a Microsoft Windows NT based network.

On my LAN, DHCP is provided by a Netgear router. It allows for a
hostname to be entered against manually entered IP addresses. I am interested
now to see if this can be used by my Debian based laptop.

If so, this means that my laptop will be able to recognize my home LAN
from the provided hostname. (Damn! I hope it works.)

Cheers,

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #4 (permalink)  
Old 07-02-2008, 11:51 PM
Baho Utot
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

Mark Hobley wrote:

[putolin]

> On my LAN, DHCP is provided by a Netgear router. It allows for a
> hostname to be entered against manually entered IP addresses. I am
> interested now to see if this can be used by my Debian based laptop.
>
> If so, this means that my laptop will be able to recognize my home LAN
> from the provided hostname. (Damn! I hope it works.)
>


Why wouldn't it work? This is Linux where all things are possible :)

--
Tayo'y mga Pinoy
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 05:55 PM
Rikishi 42
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

On 2008-07-02, Mark Hobley <markhobley@hotpop.donottypethisbit.com> wrote:

> On my LAN, DHCP is provided by a Netgear router. It allows for a
> hostname to be entered against manually entered IP addresses. I am interested
> now to see if this can be used by my Debian based laptop.
>
> If so, this means that my laptop will be able to recognize my home LAN
> from the provided hostname. (Damn! I hope it works.)


Why not simply recognise the IP range that your LAN uses ?
Or even the - fixed - address ?


--
The sand remembers once there was beach and sunshine
but chip is warm too
-- haiku from Effector Online, Volume 1, Number 6
Reply With Quote
  #6 (permalink)  
Old 07-03-2008, 06:51 PM
Mark Hobley
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

Rikishi 42 <skunkworks@rikishi42.net> wrote:

> Why not simply recognise the IP range that your LAN uses ?
> Or even the - fixed - address ?


Yeah. I do actually dynamically allocate fixed addresses on my LAN, but
I cannot guarantee that these addresses would not be allocated on a
foreign network. However, I am sure that my hostname is only meaningful
on my LAN. Certainly the fully qualified domain name is, but I am not
sure whether this is obtainable via DHCP, (and I don't think my netgear
router can provide a fully qualified domain name to its clients.)

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #7 (permalink)  
Old 07-06-2008, 02:18 PM
Andrew Gideon
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

On Thu, 03 Jul 2008 19:55:31 +0200, Rikishi 42 wrote:

> Why not simply recognise the IP range that your LAN uses ? Or even the -
> fixed - address ?


Or the SSID of the network itself?

- Andrew
Reply With Quote
  #8 (permalink)  
Old 07-06-2008, 08:07 PM
Mark Hobley
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

Andrew Gideon <c172driver1@gideon.org> wrote:

> Or the SSID of the network itself?


My network is not wireless, and I have no wireless devices. I currently carry
an ethernet cable with me. (Damn! I am so old fashioned.)

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #9 (permalink)  
Old 07-06-2008, 08:22 PM
Andrew Gideon
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

On Sun, 06 Jul 2008 21:07:30 +0100, Mark Hobley wrote:

>> Or the SSID of the network itself?

>
> My network is not wireless,


Wow. Shows my bias that I assumed wireless, eh?

<Laugh>

- Andrew
Reply With Quote
  #10 (permalink)  
Old 07-19-2008, 05:56 AM
Jim Talbut
 
Posts: n/a
Re: Whose LAN am I on? Is this LAN mine? (Laptop networking query)

I don't know if this matters, but be aware that none of the ideas suggested
here are secure - they could all be spoofed.
Trying to securely identify the network that you are connected to is more
difficult.

Another really easy way to identify your network (that is also spoofable) is
default gateway MAC address.

Jim

"Mark Hobley" <markhobley@hotpop.donottypethisbit.com> wrote in message
news:gtatj5-lqg.ln1@neptune.markhobley.yi.org...
> Sarah <uaqjtclv@yahoo.co.uk> wrote:
>
>> It *is* DHCP. You can configure networking so that it assigns a constant
>> hostname. I don't know how to do this on Debian.

>
> Wow! I looked at the DHCP related documents, and you are right. It does
> provide the option to set the hostname. Interestingly in the early days
> of Microsoft Windows '95, I encountered a problem that required me to
> study the DHCP telemetry. I found a problem with the hostname not being
> available in the telemetry from the Unix based network. The
> organizations affected by the problem took the decision to install a
> Microsoft
> Windows NT based servers alongside their existing Unix networks to
> manage their hosts. Interestingly, when I obtained that "STUDENT-23"
> hostname, I was on a Microsoft Windows NT based network.
>
> On my LAN, DHCP is provided by a Netgear router. It allows for a
> hostname to be entered against manually entered IP addresses. I am
> interested
> now to see if this can be used by my Debian based laptop.
>
> If so, this means that my laptop will be able to recognize my home LAN
> from the provided hostname. (Damn! I hope it works.)
>
> Cheers,
>
> Mark.
>
> --
> Mark Hobley,
> 393 Quinton Road West,
> Quinton, BIRMINGHAM.
> B32 1QE.


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT. The time now is 02:24 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109