ts-7000
[Top] [All Lists]

Re: [ts-7000] RE: ts-7800 how do I make 4 (at least 2) identical network

To:
Subject: Re: [ts-7000] RE: ts-7800 how do I make 4 (at least 2) identical network stacks?
From: Walter Marvin <>
Date: Sun, 3 Nov 2013 15:11:17 -0800 (PST)
Looks likely, but those last 10 or 20 lines of code are tricky and critical
--------------------------------------------
On Sun, 11/3/13, Jonathan Leslie <> wrote:

 Subject: Re: [ts-7000] RE: ts-7800 how do I make 4 (at least 2) identical 
network stacks?
 To: 
Date: Sunday, November 3, 2013, 1:04 PM
















  



  


    
      
      
       Ok, so we have alot
 of pieces, will the ts7800 handle four "iproute2"
 does it have 4 NIC things?   Can I get this done with
 just the one ts7800???



From: Jason Stahls
 <>
  To:
 
  Sent: Sunday,
 November 3, 2013 4:00 PM
  Subject: Re:
 [ts-7000] RE: ts-7800 how do I make 4 (at least 2) identical
 network stacks?
   

  



  


    
      
      
      
  
  
     The
 separate routing table can be done
       with iproute2.

      

       --

       Jason Stahls

      

       On 11/3/2013 3:58 PM, Jonathan Leslie wrote:

    
    
      
      
      
         That is why I need each network to have
 its own
             routing table. 
        

          
        

          
        

          
            
              
                
                   
From: Paul
                     Yanzick <>

                     To:
                     


                     Sent:
                     Sunday, November 3, 2013 2:37 PM

                     Subject:
                     RE: [ts-7000] RE: ts-7800 how do I make
 4 (at least
                     2) identical network stacks?

                   
                

                  
                    
                        
                      
                        
                          
                            
                               If I understand
 correctly… you
                                   want a single unit to be
 on 4
                                   networks, using the same
 IP on all 4
                                   networks?  That could
 be problematic. 
                                   If they are separate
 networks, and it
                                   tries to send out a packet
 in reply,
                                   it is going to use its
 internal
                                   routing table.  If
 they are all the
                                   same IP scheme, it won’t
 know which
                                   adapter to send out
 of.  So, it may
                                   not send packets down the
 right
                                   network.
                                 
                               I may be
 misunderstanding the
                                   issue (jumping into this a
 bit late)…
                                   but thought I’d provide
 a little note
                                   on that, if that is indeed
 the
                                   direction.
                                 
                              
                                
                                  
                                     From:
                                         
                                         
                                         On Behalf Of
 Jason
                                         Stahls

                                         Sent: Sunday,
 November 3,
                                         2013 12:39 PM

                                         To:
                                         

                                         Subject: Re:
 [ts-7000]
                                         RE: ts-7800 how do I
 make 4 (at
                                         least 2) identical
 network
                                         stacks?
                                  
                                
                                   
                                  
                                
                                  
                                    
                                      
                                         On
                                           11/3/2013 1:29 PM,
 Jonathan
                                           Leslie
 wrote:
                                      
                                      
                                        
                                          
                                             "He has two legacy boxes with
 the same fixed
                                                 IPs that
 can't be
                                               
 changed."  
                                          
                                          
                                             Exactly.   I actually have
 four legacy boxes
                                                 with the
 address
                                                 1.1.1.101. I
 want a C
                                                 program or
 programs for
                                                 the ts-7800
 that can
                                                 individually
 talk to
                                                 each of the
 legacy
                                                 devices
 through the 4
                                                 ports of the
 ts-7800.  
                                          
                                          
                                               
                                          
                                          
                                             So I want to know if on the
 ts-7800 can I set
                                                 up 4 IP
                                               
 stacks/SOCK/iptables/whatever
                                                  so
 that I can have a 4
                                                 different
 networks, lets
                                                 call them A,
 B, C, and
                                                 D, all on
 the same
                                               
 ts-7800. 
                                          
                                          
                                               
                                          
                                          
                                             so I should be able to have a c
 program of the
                                               
 sort:
                                          
                                          
                                               
                                          
                                          
                                             talk_to_legacy_device -n[A|B|C|D]
                                               
 -i[1.1.1.101]
                                               
 -m"message" 
                                          
                                          
                                               
                                          
                                          
                                               
                                          
                                          
                                             where 
                                          
                                          
                                               
                                          
                                          
                                             on all 4 networks, I have
 established that my
                                                 node is
 1.1.1.200.   
                                          
                                          
                                               
                                          
                                          
                                             when I use talk_to_legacy_device,
 the -n
                                                 parameter
 lets the c
                                                 program know
 which of
                                                 the 4
 networks I want to
                                                 send the
 message out on,
                                                 and then
 also has a
                                                 listener on
 that same
                                                 network for
 the response
                                                 from
 1.1.1.101.   
                                          
                                          
                                               
                                          
                                          
                                             eventually I will have 4
 background processes
                                                 all
 listening on the
                                                 four
 different networks,
                                                 for a
 communication from
                                                 their
 respective
                                                 1.1.1.101
 legacy system,
                                                 and signal a
 command
                                                 program to
 format a
                                                 response and
 have only
                                                 that one
 background
                                                 process send
 the reply.
                                               
   
                                          
                                          
                                               
                                          
                                          
                                             So can this arrangement be set up
 on the
                                                 ts-7800 or
 not???
                                          
                                        
                                      
                                      

                                         Yes it can, I've
 done something
                                         similar with a
 multi-home'd
                                         router, four
 interfaces, two wan
                                         to lan and keep them
 separate
                                         from each
 other.  Do I remember
                                         how?  No
 :)  I remember lots of
                                         iproute2 and
 iptables reading
                                         tho.  Big thing
 is you'll need
                                         either four
 NIC's on the TS7800,
                                         or a VAN capable
 switch (for
                                         size and price a
 Linux based
                                         consumer router like
 a WRT54
                                         would work) to
 separate the
                                         networks.  You
 then block the
                                         networks for seeing
 each other
                                         (iptables/iproute2)
 and bind
                                         your C app to a
 specific
                                         interface.  -n
 would be easiest
                                         to take a Ethernet
 interface
                                         (eth0, eth0.1, eth1,
 whatever)
                                         instead of a
 label. 

                                        

                                         What do these legacy
 devices
                                         do?  Might it
 be easier to
                                         re-implement them
 into a single
                                         TS7800 ?

                                        

                                         --

                                         Jason Stahls
                                    
                                    
                                      
                                    
                                  
                                
                              
                            
                          
                        
                        
                          
                      
                      

                      

                    
                  
                
              
            
          
        
      
      
      
    
    

  



    
     

    
    




     


    
     

    
    






  











------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo Groups is subject to:
    http://info.yahoo.com/legal/us/yahoo/utos/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU