Author Topic: A device with direct LAN connection to a PC - and getting an IP address  (Read 498 times)

0 Members and 1 Guest are viewing this topic.

Online iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5653
  • Country: gw
Hi, I have in my lab a PC wired to a router (router is off the lab) via a single LAN cable (1Gb).
The PC has got two ethernet ports (two IP addresses).
I have an oscilloscope, I want to wire the scope to the second ethernet port in the PC, and I want the scope gets an IP address.
Is there perhaps a trick how to do it (except to run a DHCP server on the PC)?

Readers discretion is advised..
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2718
  • Country: fi
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #1 on: January 16, 2025, 06:43:26 pm »
A device can have a static address or not.
If not then something must provide it and scope must support that something.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-OR-X-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Online iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5653
  • Country: gw
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #2 on: January 16, 2025, 06:48:29 pm »
DHO-804 scope - it can have a static address, afaik (at least I see it in the menu).
Readers discretion is advised..
 

Online tunk

  • Super Contributor
  • ***
  • Posts: 1122
  • Country: no
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #3 on: January 16, 2025, 06:56:45 pm »
Try to e.g. set your pc to 192.168.3.2 and your scope to 192.168.3.3
(assuming this subnet isn't in use for your other PC port).
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2718
  • Country: fi
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #4 on: January 16, 2025, 07:11:53 pm »
Your PC has one address space, don't use that for your static addresses.

tunk's offer is fine, regular routers don't use that.
Maybe better use 33 for 3rd octet, if you're in a bigger facility.

Last octets as 2 and 3 are also fine.
If default gateway is required you can use basically any value, for unknown address there is a timeout, but it shouldn't be a real problem.
Using PC's address as gateway address for scope is probably also fine, but you never know if M$ is your PC OS provider.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-OR-X-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Online iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5653
  • Country: gw
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #5 on: January 16, 2025, 07:21:05 pm »
The scope allows to set Static IP, let my PC be 192.168.0.99

for example:

Scope settings:

DHCP      Auto IP       X Static IP

IP address    192.168.0.150
Subnet         255.255.255.0
Gateway      192.168.0.77
DNS             0.0.0.0
mDNS           OFF     (ON/OFF)

The scope is connected (green light). Scope shows Netw status INVALID IP after I apply it.
« Last Edit: January 16, 2025, 07:25:52 pm by iMo »
Readers discretion is advised..
 

Online iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5653
  • Country: gw
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #6 on: January 16, 2025, 07:34:28 pm »
Tried "Auto IP" and after some time it connected to

IP address    169.254.xxx.yyy   who is it??  "local-link"
Gateway      169.254.1.1.

And I can see it in the browser
« Last Edit: January 16, 2025, 07:41:52 pm by iMo »
Readers discretion is advised..
 

Offline nfmax

  • Super Contributor
  • ***
  • Posts: 1627
  • Country: gb
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #7 on: January 16, 2025, 07:38:38 pm »
That is link-local addressing. If all else fails, it allows the two endpoints of the link to communicate with each other, but nowhere else
 

Offline Sorama

  • Regular Contributor
  • *
  • Posts: 228
  • Country: be
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #8 on: January 16, 2025, 07:43:20 pm »
It means your device did not get an ip address from the dhcp server.
S
Your pc is not a router nor a switch.
So this won’t work, unless you configure 2 subnets an a routing on this pc.

Just buy a simple switch and put the network cable of the pc into that switch and also  cables from pc and scope into that switch.
« Last Edit: January 16, 2025, 07:47:36 pm by Sorama »
 

Online iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5653
  • Country: gw
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #9 on: January 16, 2025, 07:44:37 pm »
That is link-local addressing. If all else fails, it allows the two endpoints of the link to communicate with each other, but nowhere else

I see, hopefully it is not connected somewhere else :)
Thanks!
« Last Edit: January 16, 2025, 07:50:06 pm by iMo »
Readers discretion is advised..
 

Online iMoTopic starter

  • Super Contributor
  • ***
  • Posts: 5653
  • Country: gw
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #10 on: January 16, 2025, 07:47:28 pm »

It takes some time it connects to the 169.254... via the "Auto IP", so I thought it does not work when I tried couple of times before..
And it works..
« Last Edit: January 16, 2025, 07:54:42 pm by iMo »
Readers discretion is advised..
 

Offline Sorama

  • Regular Contributor
  • *
  • Posts: 228
  • Country: be
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #11 on: January 16, 2025, 07:50:17 pm »
It means your device did not get an ip address from the dhcp server.
So check the pool of adresses.

That is the intention (called "Auto IP" in that oscilloscope) as it is connected to the PC via direct LAN (not to the router)..
And it works..

Reread my post please. I wasn’t finished yet :-)
« Last Edit: January 21, 2025, 11:44:33 am by Sorama »
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 17502
  • Country: us
  • DavidH
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #12 on: January 16, 2025, 11:37:20 pm »
I do that all of the time with static addresses, although the switch I am using can operate as a DHCP server if I wanted.
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2315
  • Country: ca
Re: A device with direct LAN connection to a PC - and getting an IP address
« Reply #13 on: January 17, 2025, 02:18:20 am »
Do you want the scope on the same network? Just bridge the two network cards on the PC. Then it actress almost exactly like an Ethernet switch. The scope will see the LANs DHCP server. I've done this on Linux and on Windows.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf