STAF does not provide the ability to do this in its configuration file. 
But, I googled this and it appears you can use other software to 
accomplish this for any application that uses TCP/IP sockets.  For 
example, if you're using Windows, you could use ForceBindIP (available at 
http://www.r1ch.net/stuff/forcebindip/)  to force STAFProc to bind to a 
particular IP address.

ForceBindIP -i <IP address> "C:\STAF\bin\STAFProc.exe" 

I got this information from 
http://www.tomshardware.com/forum/20290-42-simultaneous-multiple-internet-connections
.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Mike Boyle/Cambridge/IBM@Lotus
To:     staf-users@lists.sourceforge.net, 
Date:   01/24/2012 01:31 PM
Subject:        [staf-users] running STAF on second NIC card by default



Hi, 

I have Linux systems that have 2 NIC cards with the first card using a Non 
rotatable IP.  How can I make STAF use the second card eth1 by default? 

I read the online documentation and tried adding "set defaultinterface 
eth1" to my STAF.cfg but it did not work. 

ifconfig 

eth0      Link encap:Ethernet  HWaddr 00:50:56:BE:7D:D8 
          inet addr:192.168.123.123  Bcast:192.168.123.255 
Mask:255.255.255.0 
          inet6 addr: 2002:920:c000:142:250:56ff:febe:7dd8/64 Scope:Global 

          inet6 addr: fe80::250:56ff:febe:7dd8/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:4457165 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:149929 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:489997282 (467.2 Mb)  TX bytes:12915416 (12.3 Mb) 

eth1      Link encap:Ethernet  HWaddr 00:50:56:BE:32:BF 
          inet addr:9.32.x.x  Bcast:9.32.142.255  Mask:255.255.255.0 
          inet6 addr: 2002:920:c000:142:250:56ff:febe:32bf/64 Scope:Global 

          inet6 addr: fe80::250:56ff:febe:32bf/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:27238973 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:13571404 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:2909833146 (2775.0 Mb)  TX bytes:1309264425 (1248.6 Mb) 


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:4852839 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:4852839 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:1478656761 (1410.1 Mb)  TX bytes:1478656761 (1410.1 Mb) 


any help would be appreciated 

Thanks 
-Mike
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to