element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 No IP address via DHCP
  • 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 11 replies
  • Subscribers 678 subscribers
  • Views 3744 views
  • Users 0 members are here
  • raspberry_pi
Related

No IP address via DHCP

Former Member
Former Member over 12 years ago

Hello everyone,

 

I have got two PI’s two weeks ago and yesterday tried to get Ethernet working.

Fresh raspbian OS is used.

I am using a cable modem that is DHCP capable (my laptop gets dynamic IP without problems). Ethernet cable is also fine – tried with the laptop.

Connecting it to PI and booting, I see the “link” light and “100” light ON.

The IP address is not available.

I checked /etc/network/interfaces:

auto lo

 

iface lo inet loopback
iface eth0 inet dhcp

 

Tried to change to:

 

auto eth0
iface eth0 inet dhcp

 

Did not help also.

 

On the booting log I see:

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5

5-6 such messages, then:

No DHCPOFFERS received

 

I tried to reduce power consumed by PI (took away the USB mouse and keyboard), did not change anything. I am using 5V 1A power supply.

 

Any idea what the problem might be?

  • Sign in to reply
  • Cancel
Parents
  • wallarug
    wallarug over 12 years ago

    You need to connect your RPi to a TV before you can SSH into it. 

     

    You need to do a first configuration via raspi-config

     

    This will come up on boot.

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

    You need to connect your RPi to a TV before you can SSH into it. 

     

    You need to do a first configuration via raspi-config

     

    This will come up on boot.

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

    No, it is the modem/switch.

    What confused me, that I tried to boot PI connecting it directly to the cable modem and it did not get any IP. I forgot that the IP given before to my laptop, is kept for a while and new IP was obviously not given.

    Power cycle of the cable modem and connecting a PI directly to it or via switch, solved the problem, it got IP. Laptop connected after this, did not get an IP...

    So in reality it is a problem of the cable modem/switch – only one IP via DHCP.

    I have used this switch with several PC those had static IPs and is surprised it does not work with DHCP.

     

    I have a monitor connected to PI.

    One can change raspi-config or /etc/network/interfaces and reboot. The same effect.

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

    From your decription, you have a cable modem *not* a gateway/router.  For multiple devices to be connected at the same time, you need to have a gateway or router to nat one of the private networks (10.x.x.x/192.168.x.x/172.16.x.x) to the public address you get from the cable modem.  Sometimes the modem/router is combined into a single device.  Provide (or google) the model number of your cable modem to find out if it is a gateway/router or modem.  The most common private range used is 192.168.1.x or in CIDR format 192.168.1.0/24.  It is also possible that you have a gateway but it's configured to only serve up one IP address.  This is sometimes done by providers as a security feature.  If this is the case and you have access to the configuration ui of the cable router, then you should see if the lan dhcp configuration has a limit of number of addresses set to 1.  Good luck.

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

    Yes it's certainly a god starting point to get a cheap router and put it in front of the network between the the Cable device and you.

    They are readily available for £10-20 range.  At least then you can work from a know good situation !

    • 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