01-07-2010 04:11 AM
Hello,
happy new year to you all!
I have asked a question on how to configure and use a new GPIB-ENET/100 connecting to eth1 and got solution at:
http://forums.ni.com/ni/board/message?board.id=140&message.id=37982&query.id=218338#M37982
Thanks for the answer, and the solution is to (and have to )configure the ENET box at eth0 and use it at eth1.
Now I expect to configure and use it at one ethernet port (eth0) without reconnecting cables. So I just exchange the name of 'eth0' and 'eth1' in the file 30-net_persistent_names.rules and get:
SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:0a:5e:52:48:51", IMPORT="/lib/udev/rename_netiface %k eth1" SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:11:2f:ae:5d:55", IMPORT="/lib/udev/rename_netiface %k eth0"
. After modification, the result of ifconfig is:
eth0 Link encap:Ethernet HWaddr 00:11:2F:AE:5D:55 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::211:2fff:feae:5d55/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:708 (708.0 b) TX bytes:1140 (1.1 Kb) Interrupt:169 Base address:0xb000 eth1 Link encap:Ethernet HWaddr 00:0A:5E:52:48:51 inet addr:134.105.193.25 Bcast:134.105.199.255 Mask:255.255.248.0 inet6 addr: fe80::20a:5eff:fe52:4851/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25857 errors:0 dropped:0 overruns:1 frame:0 TX packets:7651 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7385747 (7.0 Mb) TX bytes:1358380 (1.2 Mb) Interrupt:185 Base address:0xe000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:3297 errors:0 dropped:0 overruns:0 frame:0 TX packets:3297 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:229952 (224.5 Kb) TX bytes:229952 (224.5 Kb)
Now I connect the (configured) ENET box to eth0 and run GPIB_ENET/nienet/EthernetConfig, but get "No devices to display", although I can ping the ENET box successfully by "ping 192.168.1.2".
Then I reconnect the ENET box to eth1 and run EthernetConfig again, the device is in the device list and I can access it.
How does the program EthernetConfig check eth0? Is there any other settings needed to let the EthernetConfig recognize eth0 correctly? Thanks for your answer.
GPIB-ENET/100 driver: nienet-linux-1.2
Linux: SLES 10 sp2
Best regards,
Weining
04-12-2011 01:47 PM
Hello, did you happen to get his working? I am using redhat 5 and I too have my Enet device on eth1 but can't find it using ethernetconfig. I can open Visa Interactive Control and manually connect to my GPIB device using Resource "TCPIP0::192.168.0.103::gpib0,6::INSTR" and successfully get gpib queries.
But when I try to access my GPIB device using a c++ program I can't connect and get an error: "bfff0011: Insufficient GPIB card location information or the device or resource is not present in the system." This same program works fine under Windows. Is this due to not having my enet device defined using ethernetconfig?
Thanks!