All pastes #344324 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-07 18:07 UTC
rendered paste body
office1  <-------------> office2 <------------>  office3

##################################################################
10.1.0.1 <------> 10.1.0.2 -+- 10.8.0.1 <-----> 10.8.0.2
       |                    |                       |
192.168.0.0/24       192.168.197.0/24        192.168.2.0/24
###################################################################


################ Office1
rl1:  inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255
      description: Internal interface
tun0: inet 10.1.0.1 --> 10.1.0.2 netmask 0xffffffff
      description: office2 interface

# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
10.1.0.2           10.1.0.1           UH          2       34   tun0
192.168.1          link#2             UC          0        0    rl1
192.168.2          10.1.0.2           UGS         0     1049   tun0
192.168.197        10.1.0.2           UGS         0      729   tun0


################ Office2 
rl1:  inet 192.168.197.1 netmask 0xffffff00 broadcast 192.168.197.255
      description: Internal interface
tun1: inet 10.8.0.1 --> 10.8.0.2 netmask 0xffffffff 
      description: office1 interface
tun2: inet 10.1.0.2 --> 10.1.0.1 netmask 0xffffffff
      description: office2 interface

# route -n show
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use    Mtu  Interface
10.1.0.1           10.1.0.2           UH          1        0      -   tun2
10.8.0.2           10.8.0.1           UH          2    13781      -   tun1
192.168.1.1        10.1.0.1           UGHS        0        0      -   tun2
192.168.2/24       10.8.0.2           UGS         1    16527      -   tun1
192.168.197/24     link#2             UC          0        0      -   rl1

################ Office3 

rl1:  inet 192.168.2.254 netmask 0xffffff00 broadcast 192.168.2.255
      description: Internal interface
tun1: inet 10.8.0.2 --> 10.8.0.1 netmask 0xffffffff
      description: office2 interface

# route -n show
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use    Mtu  Interface
default            10.8.0.1           UGS         0     6723      -   tun1
10.8.0.1           10.8.0.2           UH          0      109      -   tun1
192.168.2/24       link#2             UC          0        0      -   rl1