Just like on Windows. But before you do so please pay attention to viewtopic.php?f=28&t=240167#p1466662
on the raspberry enter
Code: Select all
man ping
Code: Select all
ping --help
Code: Select all
C:\Users>ipconfig
Windows IP Configuration
Ethernet adapter LAN GBE:
Connection-specific DNS Suffix . : xxxxxxx.de
IPv4 Address. . . . . . . . . . . : 192.168.0.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.0.254
Code: Select all
[email protected]:~ $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:d1:0c:99 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.240/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
Code: Select all
C:\Users>ping -n 3 192.168.0.240
Pinging 192.168.0.240 with 32 bytes of data:
Reply from 192.168.0.240: bytes=32 time=1ms TTL=64
Reply from 192.168.0.240: bytes=32 time<1ms TTL=64
Reply from 192.168.0.240: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.0.240:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
Code: Select all
[email protected]:~ $ ping -c 3 192.168.0.5
PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
64 bytes from 192.168.0.5: icmp_seq=1 ttl=128 time=0.400 ms
64 bytes from 192.168.0.5: icmp_seq=2 ttl=128 time=0.482 ms
64 bytes from 192.168.0.5: icmp_seq=3 ttl=128 time=0.520 ms
--- 192.168.0.5 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2085ms
rtt min/avg/max/mdev = 0.400/0.467/0.520/0.053 ms
[email protected]:~ $
Connectivity seems to be available. The next step I suggest is that you open a command window on the PC and use the "net" command to see what is available like I did below:
Code: Select all
C:\Users>net
The syntax of this command is:
NET
[ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
STATISTICS | STOP | TIME | USE | USER | VIEW ]
C:\Users>net view
Server Name Remark
-------------------------------------------------------------------------------
\\RASPI1 Samba 4.5.16-Debian on raspi1
\\TOWER
The command completed successfully.
C:\Users>net view \\raspi1
Shared resources at \\raspi1
Samba 4.5.16-Debian on raspi1
Share name Type Used as Comment
-------------------------------------------------------------------------------
HDD1 Disk R: Pi Drive HDD
LUMIX Disk Lumix transfer target
The command completed successfully.
C:\Users>
Why ? What do you want to do ? Is the Pi a client of the Windows PC ? Please explain.
What is everything you tried and why ? What IP of what is placed where under SMB protocol ? Is this on the Pi or on the PC ? Where is this configuration ? Did you consult the documentation ? How do you know that the correct IP is placed in the correct place ?
I don't know, my crystal ball is in for service at the moment.
Samba is used on the Pi to share its SD card / USB stick with your PC and not the other way around. I thought you wanted to access files on the PC from the Pi - if so can you please:
Code: Select all
net view
Code: Select all
net view \\<computer name> /ALL