6
marXperts
V6.0 - Aug 2014
Software Distribution Guide
7. Setting Up the Ethernet Connection
Program mar345dtb communicates with the dtb and the mar345-scanner through an Ethernet interface. To use program
mar345dtb, the network must be congured to meet the requirements of the controllers. The mar345-scanner has the
xed IP-address 192.0.2.1 and the dtb is set to address 192.0.2.3. The host computer Ethernet interface must be set to
address 192.0.2.2. Network 192.0.2.x belongs to a pool of addresses that is not assigned to ofcial networks so there
should not be any conict with the outside world.
7.1 Congure a Dedicated Ethernet Card With IP-address 192.0.2.2
To congure an Ethernet card it is most convenient to use the graphical administration tools. On Linux, most system
conguration parameters will be taken from les in directory /etc/syscong which may be edited by hand, but you
really need to know what you are doing. It is safer to use graphical administration tools (e.g. yast2 on SuSE) to do the
conguration.
When using 2 Ethernet cards, the primary Ethernet card (eth0 on Linux, en0 on Mac) is normally congured as member
of your local network and the second Ethernet card (eth1 or en1) should be used to work with the mar345 and dtb.
In any case, the following parameters need to be assigned to the network card connecting to the mar345–detector
and dtb:
IP-address: 192.0.2.2
Netmask: 255.255.255.0
7.2 Add Entries to File /etc/hosts
Edit le /etc/hosts and add the following lines to the end of the le:
192.0.2.1 mar345 scanner
192.0.2.3 dtb mardtb
If you can’t nd an entry for IP-address 192.0.2.2, also add:
192.0.2.2 eth1
7.3 Conrm Settings
Conguring the network card normally requires a reboot of the computer. Afterwards, you should be able to access
other hosts (e.g. mar345) on network 192.0.2. To check network card eth1 (on Mac: en1), type:
ifcong eth1
On Linux, this command should come back with something like:
eth1 Link encap:10Mbps Ethernet HWaddr 00:80:C6:FF:EF:08
inet addr:192.0.2.2 Bcast:192.0.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
Interrupt:12 Base address:0x320
The correct routing table can be checked using command:
netstat –r
On Linux, it should say something similar to:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
193.141.161.0 * 255.255.255.0 U 1500 0 0 eth0
192.0.2.0 * 255.255.255.0 U 1500 0 0 eth1
127.0.0.0 * 255.0.0.0 U 3584 0
Commentaires sur ces manuels