I have a problem with vyatta 6.2 - static routing enter image description here

I want to have internet in network 192.168.0., I can ping e.g but I have no internet connection in network 192.168.0.. I tried to add static route but but nothing happened, set protocols static route next-hop

my configuration

 ethernet eth0 {
     description LAN_01
     hw-id 00:23:54:da:d8:2e
 ethernet eth1 {
     description LAN_02
     hw-id 10:fe:ed:04:12:db


root@ROUTER2# ping google.pl
PING google.pl ( 56(84) bytes of data.
64 bytes from public103577.xdsl.centertel.pl ( icmp_req=1 ttl=128 time=18.5 ms
64 bytes from public103577.xdsl.centertel.pl ( icmp_req=2 ttl=128 time=18.9 ms

root@ROUTER2# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=128 time=10.7 ms
64 bytes from icmp_req=2 ttl=128 time=0.300 ms

root@ROUTER2# show service nat rule 10 
 outbound-interface eth0
 source {
 type masquerade

thank you in advance for your help


1 Answer 1


You don't need a static route in this situation. Your router has an interface in the two /24 networks so they are automatically added to its routing table as directly connected interfaces.

Your configuration looks like it should work, so I would check anything not in your post such as:

  • client IP settings
    • Default gateway should be
    • I would look here first. Your first ping to .59 took 10ms (vs 0.3ms) which may mean an arp request was made. This is unusual, since the host should have previously contacted your router in an attempt to reach the internet and should already be in the routers arp cache. Unless it isn't configured to use the router as its GW.
    • Can they ping hosts in the network?
  • Firewall settings on the router
  • DNS
  • Conflicting NAT settings. You only need one NAT rule for basic translation.
  • it works thanks for your help, I forgot about default gateway on host, thanks again for your help :) Dec 22, 2015 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.