Hi all
someone may help?
 
I have 2 home networks & 1 adsl connection.
all together 4 network cards & 1 ppp for adsl
one network is 10.0.0.x the other is 192.168.0.x (gateways are 10.0.0.1 & 192.168.0.1)
 
I have it only half working.
Both networks connect to the internet OK. 
But  I can't connect from 10.0.0.x to 192.168.0.x  although the reverse is OK. ie
I can connect from  192.168.0.x  to 10.0.0.x
 
 
my 10.0.0.1        gateway machine:   utilises "eth1" to connect to the ppp0 conection for adsl modem
my 10.0.0.1        gateway  machine:  utilises "eth0" to connect  to the 10.0.0.x 
 
my 192.168.0.1 gateway   machine:  utilises "eth1" to connect to the 10.0.0.x 
my 192.168.0.1 gateway machine:    utilises "eth0" to connect to the 192.168.0.x 
 
 I am trying to work this out from the "route" manpage.
and am trying to add a  new route .... see below. The commands, comments,output  ....are from the 10.0.0.1 gateway machine.
Maybe I got the concept totally wrong. 
If you know the answer I guess you can understand & idon't need to explain more.
If you need more system output please just ask.
 
I am wondering whether I need a 3rd NIC on the 10.0.0.1 gateway... I hope not!
 
Any help gladly appreciated
 
Thanks Roger
 
Below is some of the  terminal output: (10.0.0.1 gateway machine)
 .....the  " xxxx____________" are my comments
......the    "#xxxxx"   are terminal commands as root
.......the rest is "standard output"
it basically shows how the enviroment changes before & after the adsl connection is started
and before & after the " route add "  commands are given.
IT DOESNOT WORK! (connect from 10.0.0.x to 192.168.0.x  or simply ping)
#############################################################################################################

#adsl-stop
nonactive_ifconfig____________________________________
#ifconfig eth0 eth1 ppp0
eth0      Link encap:Ethernet  HWaddr 00:A0:CC:75:43:BE 
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
eth1      Link encap:Ethernet  HWaddr 00:A0:CC:75:28:11 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

nonactiveroute__________________________________
#route  -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0


#adsl-start
activeroute____________________________________
#route  -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.31.196.24   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         172.31.196.24   0.0.0.0         UG    0      0        0 ppp0

adding_newroute____________________________________
  route  add -net 192.168.0.0 netmask 255.255.255.0 dev eth0
  route  add -net 192.168.0.0 netmask 255.255.255.0 gw 192.168.0.1 dev eth0
new_route_added___________________________________
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.31.196.24   0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     192.168.0.1     255.255.255.0   UG    0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         172.31.196.24   0.0.0.0         UG    0      0        0 ppp0

active_ifconfig____________________________________
#ifconfig eth0 eth1 ppp0
eth0      Link encap:Ethernet  HWaddr 00:A0:CC:75:43:BE 
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
eth1      Link encap:Ethernet  HWaddr 00:A0:CC:75:28:11 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
ppp0      Link encap:Point-to-Point Protocol 
          inet addr:139.168.85.179  P-t-P:172.31.196.24  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1

 

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to