Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Raspi help, lan port thing bob
New Posts  All Forums:Forum Nav:

Raspi help, lan port thing bob - Page 2

post #11 of 16
I don't know how the Pi handles host-to-host, but when I bridged my laptop's connection to an Arduino Ethernet module, it wouldn't work. I had to put it to a router. I think the issue was that it needed a crossover cable to do host-to-host.
post #12 of 16
Thread Starter 
Quote:
Originally Posted by Ulquiorra View Post

What distro are you using then ^_^?



Could you provide the output of
ifconfig
Shows us the config of the adapter

ethtool interface_name
The interface name is the far left colloum of the above command, this shows us information about the link

im a raspi-noob and thanks for your reply

should i do sudo ethtool interface_name because i just tried that and it gave me command not found
Work PC
(4 items)
 
Home PC
(4 items)
 
 
CPUMotherboardGraphicsRAM
4770k Asus SABERTOOTH Z87 290 16 trident  
CPUMotherboardGraphicsRAM
8350 gigabyte 990fxa 660 16gb trident 
  hide details  
Reply
Work PC
(4 items)
 
Home PC
(4 items)
 
 
CPUMotherboardGraphicsRAM
4770k Asus SABERTOOTH Z87 290 16 trident  
CPUMotherboardGraphicsRAM
8350 gigabyte 990fxa 660 16gb trident 
  hide details  
Reply
post #13 of 16
Thread Starter 
eth0 Link encap:Ethernet HWaddr b8:27:eb:43:ef:ec
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:370 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38458 (37.5 KiB) TX bytes:17850 (17.4 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Work PC
(4 items)
 
Home PC
(4 items)
 
 
CPUMotherboardGraphicsRAM
4770k Asus SABERTOOTH Z87 290 16 trident  
CPUMotherboardGraphicsRAM
8350 gigabyte 990fxa 660 16gb trident 
  hide details  
Reply
Work PC
(4 items)
 
Home PC
(4 items)
 
 
CPUMotherboardGraphicsRAM
4770k Asus SABERTOOTH Z87 290 16 trident  
CPUMotherboardGraphicsRAM
8350 gigabyte 990fxa 660 16gb trident 
  hide details  
Reply
post #14 of 16
Thread Starter 
Quote:
Originally Posted by The Hundred Gunner View Post

I don't know how the Pi handles host-to-host, but when I bridged my laptop's connection to an Arduino Ethernet module, it wouldn't work. I had to put it to a router. I think the issue was that it needed a crossover cable to do host-to-host.

I wish it could work, if not have to take a monitor down stairs which is a massive hassle... I have a sony vioa lappy but dont know how to get the screen to show
Work PC
(4 items)
 
Home PC
(4 items)
 
 
CPUMotherboardGraphicsRAM
4770k Asus SABERTOOTH Z87 290 16 trident  
CPUMotherboardGraphicsRAM
8350 gigabyte 990fxa 660 16gb trident 
  hide details  
Reply
Work PC
(4 items)
 
Home PC
(4 items)
 
 
CPUMotherboardGraphicsRAM
4770k Asus SABERTOOTH Z87 290 16 trident  
CPUMotherboardGraphicsRAM
8350 gigabyte 990fxa 660 16gb trident 
  hide details  
Reply
post #15 of 16
Just to let you know, you need to edit your first post if you want to add something and nobody else has posted after you. Mods can give infractions for bumping more than once in 24 hours.
Quote:
Originally Posted by AnnoyinDemon View Post

eth0 Link encap:Ethernet HWaddr b8:27:eb:43:ef:ec
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:370 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38458 (37.5 KiB) TX bytes:17850 (17.4 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

What you posted shows that eth0 (your LAN port) is not assigned an IP address. If the problem is not the lack of crossover cable, then on windows, you need to enable/configure a DHCP server somehow. That's the protocol that your Pi will use to ask whatever it's connected to, "Hey, give me an address so that I can talk to you in IP." Without an address, the Pi doesn't know whom to talk to in order to get out on the network.

Find out what the IP is on your LAN port on the windows machine. When I share wifi to LAN in OSX, the OSX system is on 192.168.2.1. Once find what your address such as that is, you might be able to manually do:

ifconfig inet 192.168.2.2 (just for example - you'll have to put it on the same subnet as the address you find in the step above)
ifconfig netmask 255.255.255.0 (also just for example - this works on a 192.168.x.x network)

From there, see if you can at least ping the host's address (windows)
post #16 of 16
From the use of sudo im guessing its rasbian ^_^ to get ethtool you can do

sudo apt-get update
Update what the PI knows about updates

sudo apt-get install ethtool
Install the tool

And yup, its that its not getting DHCP, so it could be either

1)DHClient isnt running and you need to set the IP address manually, 2)the wrong cable as hundred says, 3) or the connection sharing doesnt work smile.gif , the PI is asking for a IP address its just not getting a reply (maybe also firewall rules / forwarding disabled on the windows PC? i usualy only do connection sharing though nix sorry!)


1) If its this you will need to set the IP address manually, to do this you need to do;
ifconfig eth0 192.168.0.125/24 # you will need to chose a IP address yourself
route add default gw 192.168.0.1 # this will need to be the gteway of the sharing pc
ping 192.168.0.1 -n1 # see if it can talk

(its been a while since doing this so if it doesnt work its probley my fault!)

2) This ones easy, pick up or make a cheap crossover cable and test it smile.gif, the pin layout is different

3) Grab another pc or laptop other than the PI to test it ^_^
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
Escobar
(9 items)
 
Supercomputer ^_^
(13 items)
 
 
CPUMotherboardGraphicsRAM
1055T M4A88T-D EVO USB3 ATI 6850 4 GB 
Optical DriveOSMonitorKeyboard
DVD RW Windows 8 Pro lp1900 + 2 X 15 inch dell Microsoft Comfort Curve 
PowerCase
600watt thermaltake antec 200 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Raspi help, lan port thing bob