title: netkit: Connecting 3 routers and trying to ping router 3 to router 1
body: <p>hey guys,
  I am using Netkit to simulate a network, I am using the static routing lab provided by Netkit and I am trying to set up 3 routers.
  I have 3 routers each with a pc connected.</p>
  
  <p>pc1 on r1 can ping pc2 on r2 and vice versa.</p>
  
  <p>pc3 on r3 can pnig pc2 on r2 and vice versa.</p>
  
  <p><em><strong>but pc1 cant ping pc3 on r3.</em></strong></p>
  
  <p>This is my problem I can't seem to get a connection between pc1 on router 1 to connect to pc3 on router 3.</p>
  
  <p>Below is how I have configured the network:</p>
  
  <p><strong>r1.startup:</strong></p>
  
  <p>ifconfig eth0 195.11.14.1 netmask 255.255.255.0 broadcast 195.11.14.255 up</p>
  
  <p>ifconfig eth1 100.0.0.9 netmask 255.255.255.252 broadcast 100.0.0.11 up</p>
  
  <p>route add -net 200.1.1.0 netmask 255.255.255.0 gw 100.0.0.10 dev eth1</p>
  
  <p><strong>r2.startup:</strong></p>
  
  <p>ifconfig eth0 200.1.1.1 netmask 255.255.255.0 broadcast 200.1.1.255 up</p>
  
  <p>ifconfig eth1 100.0.0.10 netmask 255.255.255.252 broadcast 100.0.0.11 up</p>
  
  <p>ifconfig eth2 100.1.1.10 netmask 255.255.255.252 broadcast 100.1.1.11 up</p>
  
  <p>route add -net 195.11.14.0 netmask 255.255.255.0 gw 100.0.0.9 dev eth1</p>
  
  <p>route add -net 195.20.14.0 netmask 255.255.255.0 gw 100.1.1.9 dev eth2</p>
  
  <p><strong>r3.startup:</strong></p>
  
  <p>ifconfig eth0 195.20.14.1 netmask 255.255.255.0 broadcast 195.20.14.255 up</p>
  
  <p>ifconfig eth1 100.1.1.9 netmask 255.255.255.252 broadcast 100.1.1.11 up</p>
  
  <p>route add -net 200.1.1.0 netmask 255.255.255.0 gw 100.1.1.10 dev eth1</p>
  
  <p><strong>pc1.startup</strong></p>
  
  <p>ifconfig eth0 195.11.14.5 netmask 255.255.255.0 broadcast 195.11.14.255 up</p>
  
  <p>route add default gw 195.11.14.1 dev eth0</p>
  
  <p><strong>pc2.startup</strong></p>
  
  <p>ifconfig eth0 200.1.1.7 netmask 255.255.255.0 broadcast 200.1.1.255 up</p>
  
  <p>route add default gw 200.1.1.1 dev eth0</p>
  
  <p><strong>pc3.startup</strong></p>
  
  <p>ifconfig eth0 195.20.14.9 netmask 255.255.255.0 broadcast 195.20.1.255 up</p>
  
  <p>route add default gw 195.20.14.1 dev eth0</p>
  
  <p><strong>lab.conf:</strong></p>
  
  <p>r1[0]="A"
  r1[1]="B"</p>
  
  <p>r2[0]="C"
  r2[1]="B"
  r2[2]="D"</p>
  
  <p>r3[0]="E"
  r3[1]="D"</p>
  
  <p>pc1[0]="A"
  pc2[0]="C"
  pc3[0]="E"</p>
  
  <p>Any help would be appreciated. Thanks.</p>