element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Hostname issue.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 13 replies
  • Subscribers 665 subscribers
  • Views 2351 views
  • Users 0 members are here
  • wifi
  • cmdrobot
  • help
  • tplink
  • helpme
  • element14
  • raspi
  • wlan
  • network
  • raspberry_pi
  • help!!!!
  • wlan0
  • prototyping
  • raspberrypi
  • hostname
  • rpi
  • wireless
Related

Hostname issue.

wallarug
wallarug over 12 years ago

I have been trying to get this to work for days but have been unsuccessful.

 

I posted here:  http://www.raspberrypi.org/phpBB3/viewtopic.php?f=27&t=10071&p=230854#p230854 but got no responce (which I expected).

 

Most of my details are on there (from last night)

 

I started with a fresh image today and still no luck.

 

What I am trying to do is, using the python command: "socket.gethostbyaddr('10.0.128.2')"

... Check what Raspberry Pi I have connected to and then use this information to decide what to do next.

 

Currently, I have been able to 'hit' every computer on my network with this command except for the raspberry pi.  This is very frustrating.  All the websites that I have read seem to say that it should just work.  I know someone who has a raspberry pi and this seems to work for him.

 

I have set-up a dummy network (which is used above) to attempt to get everything to work.  So far I have had no luck pinging the hostname 'raspberrypi' or 'CMDoverwatch'. 

 

What is really confusing is that the router has the CORRECT hostname but the computers on the network can't use it.

 

I need some help to find out why and then fix it.

 

Below are some of the router setting details:

 

 

DHCP Settings

DHCP Server:Disable Enable
Start IP Address:10.0.128.100
End IP Address:10.0.128.199
Address Lease Time:120 minutes (1~2880 minutes, the default value is 120)
Default Gateway:10.0.128.1 (optional)
Default Domain: (optional)
Primary DNS:10.0.128.1 (optional)
Secondary DNS:8.8.8.8 (optional)

 

Client LIST:

 

IDClient NameMAC AddressAssigned IPLease Time
1raspberrypiB8-27-EB-A0-56-1E10.0.128.10001:58:14
2PC-private10-9A-DD-BC-8F-D210.0.128.10101:45:07

 

 

 

Wireless Settings

SSID:CMDnetwork-base-station
Region:AlbaniaAlgeriaArgentinaArmeniaAustraliaAustriaAzerbaijanBahrainBelarusBelgiumBelizeBolviaBrazilBrunei DarussalamBulgariaCanadaChileChinaColombiaCosta RicaCroatiaCyprusCzech RepublicDenmarkDominican RepublicEcuadorEgyptEl SalvadorEstoniaFinlandFranceGeorgiaGermanyGreeceGuatemalaHondurasHong KongHungaryIcelandIndiaIndonesiaIranIrelandIsraelItalyJapanJapan1Japan2Japan3Japan4Japan5Japan6JordanKazakhstanNorth KoreaKorea RepublicKorea Republic2KuwaitLatviaLebanonLiechtensteinLithuaniaLuxembourgMacauMacedoniaMalaysiaMaltaMexicoMonacoMoroccoNetherlandsNew ZealandNorwayOmanPakistanPanamaPeruPhilippinesPolandPortugalPuerto RicoQatarRomaniaRussiaSaudi ArabiaSingaporeSlovak RepublicSloveniaSouth AfricaSpainSwedenSwitzerlandSyriaTaiwanThailandTrinidad & TobagoTunisiaTurkeyUkraineUnited Arab EmiratesUnited KingdomUnited StatesUruguayUzbekistanVenezuelaViet NamYemenZimbabwe
Warning:Ensure you select a correct country to conform local law.
Incorrect settings may cause interference.

Channel: 12345678910111213
Mode:11Mbps (802.11b)54Mbps (802.11g)

Enable Wireless Router Radio
Enable SSID Broadcast
Enable Bridges

Enable Wireless Security
Security Type:WEP WPA/WPA2WPA-PSK/WPA2-PSK
Security Option: AutomaticWPA-PSKWPA2-PSK
Encryption:AutomaticTKIPAES
PSK Passphrase:doesitreallymatter???
(The Passphrase is between 8 and 63 characters long)
Group Key Update Period:86400(in second, minimum is 30, 0 means no update)

 

LAN

MAC Address:

00-23-CD-C7-12-32

IP Address:
Subnet Mask:      255.255.255.0      255.255.0.0

 

 

That should be all the settings that have been enabled or helpful to people trying to help me.  All the raspberry pi settings are on the link above.

 

Just for those hackers out there, this is not connect to the internet and does not have ANY information on it. image

 

Thanks for anyone who can solve this issue.

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 12 years ago

    Well, I  have no answer but I need to learn about this stuff, so I have a question ....

     

    If your router is set to 192.168.1.1, with a subnet mask of 255.255.255.255.0 , why would you put your peripheral devices on a different subnet (10.0.128.100)?

    Would you expect to be able to ping them?

    This is a *genuine* question from a relative novice.

    --G

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to Former Member

    I think you might be confused.

     

    I wanted to have a portable network set-up using the 10.0.128.100 IP address.

     

    My Personal Home network uses 192.168.*.*  (removed numbers)

     

    I am talking about two network situations where the devices are in separate situations.

     

     

    About your question:

     

    Would you expect to be able to ping them?

    Yes.  Provided you have put the same subnet mask on both devices.  I have seen this done on Corperate networks where they use an IP address for wireless devices and LAN devices. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mcb1
    mcb1 over 12 years ago in reply to wallarug

    Cian

    I think you'll find they add a route to allow the different IP address to work, or they use NAT (Network Address Translation) which is effectively what your broadband router does.

    This may be part of the switch, or within the devices protocols.

     

    Normally you will have a gateway address, where the device heads if its not an address on the local LAN.

    For grahame's example there are 254 address's available, so anything that is 192.168.1. x will be treated as Local, and anything else heads out the gateway and is resolved elsewhere.

     

    If I understand correctly you have a portable network that is attached onto your home network.

    Have you tried changing the Gateway address to the 192.168.*.* (pick something that doesn't clash).

    This would then mean that anything not intended to be local (ie 10.0.128. x) will go out the gateway which should be your local lan.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • GreenYamo
    GreenYamo over 12 years ago in reply to wallarug

    Cian,

    You need to bridge the two networks together, both the 192 and 10 networks are reserved for internal networking. These will be the internal addresses on your own network, not the outward facing IP assigned by your ISP.

    Putting the same netmask will not cause them to be linked, as Mark indicates this is only in reference to the number of ip address available on that subnet. See below, I think it will give you some pointers.

    http://serverfault.com/questions/198419/how-to-bridge-networks-192-168-191-0-24-and-10-9-0-0-16

    Steve

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to GreenYamo

    I wasn't confused Cian, so much as curious. Thanks for explaining about your two networks. The comments above seem to be well in line with my own humble thinking, and will hopefully help you reach your goal.

    --G

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 12 years ago in reply to GreenYamo

    I wasn't confused Cian, so much as curious. Thanks for explaining about your two networks. The comments above seem to be well in line with my own humble thinking, and will hopefully help you reach your goal.

    --G

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    P.S.

     

    Since you know the IPs on your alternative network -- I imagine that you use Address Reservation or no DHCP -- it should be very simple to access them  that way. Interested to know the advantage(s) of calling them by name (lots to learn, here).

    --G

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to Former Member

    I was curious, and cautiously so, to know what would happen if one sends an IP request 'intended' for local receipt out onto the internet, so I did a whois on    10.0.128.100   and got this....

     

    NetRange:       10.0.0.0 - 10.255.255.255

    CIDR:           10.0.0.0/8

    OriginAS:      

    NetName:        PRIVATE-ADDRESS-ABLK-RFC1918-IANA-RESERVED

    NetHandle:      NET-10-0-0-0-1

    Parent:        

    NetType:        IANA Special Use

    RegDate:       

    Updated:        2011-04-12

    Ref:            http://whois.arin.net/rest/net/NET-10-0-0-0-1

     

    OrgName:        Internet Assigned Numbers Authority

    OrgId:          IANA

    Address:        12025 Waterfront Drive

    Address:        Suite 300

    City:           Los Angeles

    StateProv:      CA

    PostalCode:     90292

    Country:        US

    RegDate:       

    Updated:        2012-08-31

     

    I suppose it doesn't matter much, and they might blame the Albanians anyway, according to your info.

    --G

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube