droidus
Posts: 286
Joined: Sat Feb 02, 2013 4:09 am

ethernet connection to server

Thu Dec 19, 2013 8:45 pm

I am trying to get an IP address from my xp server through an internet connection through ethernet. when I set up dhcp on the pi, it sends out dhcpdiscover packets, but none of them are ever answered. i made sure to check the option in xp to share the internet connection. it first seems to work when I first check the box. it then also seems to fix it when i turn it off, then back on. how can I resolve this?

remsnet
Posts: 151
Joined: Wed Dec 19, 2012 7:32 pm
Location: Planet Gaia
Contact: Website Yahoo Messenger

Re: ethernet connection to server

Thu Dec 19, 2013 9:31 pm

droidus wrote:I am trying to get an IP address from my xp server through an internet connection through ethernet. when I set up dhcp on the pi, it sends out dhcpdiscover packets, but none of them are ever answered. i made sure to check the option in xp to share the internet connection. it first seems to work when I first check the box. it then also seems to fix it when i turn it off, then back on. how can I resolve this?
Suggesion : give your PI an static ip and stop using dhcp as you like samba i.e.

i.e on rasberian:

Code: Select all

~ $ cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# IPv4 eth0 Interface
auto eth0
iface eth0 inet static
        address 192.168.17.200
        netmask 255.255.255.0
        broadcast 192.168.17.255
        gateway 192.168.17.1
        dns-search vw.remsnet.de
        dns-nameservers 192.168.17.200 192.168.17.1
192.168.17.x may replaced your Routers network i.e.

update /etc/resolv.conf accordingly

After that figureout samba then i.e

User avatar
DougieLawson
Posts: 40590
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: ethernet connection to server

Thu Dec 19, 2013 10:54 pm

droidus wrote:I am trying to get an IP address from my xp server through an internet connection through ethernet.
Is that a direct cat5 cable from your unsupportable Windows XP machine to your RPi? Or are you connecting both to a home router/switch/dhcp server?

If it is then Windows will automatically pick an address from the 169.254.0.1 to 169.254.255.254 (netmask 255.255.0.0) range.

On your RPi you need to assign an address.
sudo ifconfig eth0 169.254.82.80 # this is an arbitrary address 80 == ascii P, 82 == ascii R. so 80.82 = R.P.
sudo ifconfig eth0 up
should get the point to point link running.

Use ipconfig /all in a command window to find what your unsupported operating system has assigned to it's end of the network.
You should then be able to ping 169.254.82.80 and use PuTTY to get an ssh connection to your RPi.
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Return to “Troubleshooting”