How do I tell what interface my simulator is running on?

          

1. Halt all simulators.

2. For each network interface, do an ifconfig -promisc to remove the promisc option. E.g. if I have two network interfaces:

  [root@localhost /root]# ifconfig eth0 -promisc
  [root@localhost /root]# ifconfig eth1 -promisc
3. Double-check that all interfaces don’t have the promisc option by checking to see if there is any output from the following commands. Here is how:
  [root@localhost /root]# ifconfig | grep -i promisc
  [root@localhost /root]#

4. Start a simulator. Test one simulator at a time otherwise if one is configured wrongly you won’t be able to determine which one.

5. While the simulator is running enter the following command in another shell window. I’ve underlined the eth1 section with the visible PROMISC option. This means that the simulator started promiscuous sniffing on the eth1 interface so that it could see a network.:

  [root@localhost /root]# ifconfig
  eth0   Link encap:Ethernet HWaddr 00:0C:29:3A:60:AA
         inet addr:192.168.121.128 Bcast:192.168.121.255 Mask:255…
         UP BROADCAST RUNNING MULTICAST  MTU:1500        Metric:1
         RX packets:665 errors:0 dropped:0 overruns:0 frame:0
         TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         Interrupt:9 Base address:0x1060

  eth1   Link encap:Ethernet HWaddr 00:0C:29:3A:60:AA
         inet addr:192.168.121.129 Bcast:192.168.121.255 Mask:255…
         UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
         RX packets:706 errors:0 dropped:0 overruns:0 frame:0
         TX packets:184 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:100
         Interrupt:10 Base address:0x1080

  lo  (rest of output snipped)
  [root@localhost /root]#

6. Repeat 2 onwards for each other simulator.

If you noticed that a simulator is set against the wrong interface then re-run the setup.sh script for each one and change the interface to the correct one.