I have an external device (a PCB crate) of which I do not know the IP address. Connected to this device is a PCB that broadcasts its MAC address. Ultimately, I want to know this MAC address.
I can connect to PCB crate with an Ethernet cable. I have two Ethernet cards in my PC, one connected to the outside world (eth0), and one connected to the PCB crate (eth1).
I installed wireshark to see if I get any traffic on eth1, but I don't see anything. Here's the output of ip addr:
Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:22:4d:aa:e6:1d brd ff:ff:ff:ff:ff:ff inet 18.104.22.168/24 brd 22.214.171.124 scope global eth0 inet6 fe80::222:4dff:feaa:e61d/64 scope link valid_lft forever preferred_lft forever 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 68:05:ca:26:b7:6f brd ff:ff:ff:ff:ff:ff inet6 fe80::6a05:caff:fe26:b76f/64 scope link valid_lft forever preferred_lft forever 4: virbr0: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN link/ether 52:54:00:bb:7f:ae brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 500 link/ether 52:54:00:bb:7f:ae brd ff:ff:ff:ff:ff:ff
Code: Select all
ifconfig eth1 192.168.0.10 netmask 255.255.255.0
I'm a bit stuck now, if I'm going in the right direction or not. How can I figure out what IP address the PCB crate has? How can I communicate with it, such that the MAC address of the PCB will be broadcasted to my Ethernet card? How can I turn off the DHCP for eth1 only?
Any help is much appreciated.