title: How to establish routing between two interfaces in VyOS
body: <p>With this network setup and VyOS settings, the <code>10.0.0.10</code> windows machine is able to ping both sides of the VyOS router (<code>10.0.0.1</code> and <code>192.168.7.77</code>), but not the gateway (<code>192.168.7.254</code>). Therefore, my host <code>10.0.0.10</code> has no Internet access.</p>
  
  <p>I believe this is a routing problem and I read in another <a href="https://networkengineering.stackexchange.com/questions/25364/vyatta-static-routing-between-2-lan">answer</a> that routing between LANs should be auto. Routing table looks good to me as well.</p>
  
  <pre><code>vyos@vyos:~$ ip route show
  default via 192.168.7.254 dev eth0  proto zebra
  10.0.0.0/24 dev eth1  proto kernel  scope link  src 10.0.0.1
  127.0.0.0/8 dev lo  proto kernel  scope link  src 127.0.0.1
  192.168.7.0/24 dev eth0  proto kernel  scope link  src 192.168.7.77
  </code></pre>
  
  <p>Config:</p>
  
  <pre><code>interfaces {
      ethernet eth0 {
          address dhcp
          description unsafe
          duplex auto
          hw-id 08:00:27:20:e9:f9
          smp_affinity auto
          speed auto
      }
      ethernet eth1 {
          address 10.0.0.1/24
          description safe
          hw-id 08:00:27:e2:28:0a
      }
      loopback lo {
      }
  }
  service {
      dhcp-server {
          shared-network-name lab {
              authoritative enable
              subnet 10.0.0.0/24 {
                  default-router 10.0.0.1
                  dns-server 8.8.8.8
                  start 10.0.0.10 {
                      stop 10.0.0.100
                  }
              }
          }
      }
      ssh {
          port 22
      }
  }
  system {
      config-management {
          commit-revisions 20
      }
      console {
          device ttyS0 {
              speed 9600
          }
      }
      host-name vyos
      login {
          user vyos {
              authentication {
                  encrypted-password ****************
                  plaintext-password ****************
              }
              level admin
          }
      }
      ntp {
          server 0.pool.ntp.org {
          }
          server 1.pool.ntp.org {
          }
          server 2.pool.ntp.org {
          }
      }
      package {
          auto-sync 1
          repository community {
              components main
              distribution helium
              password ****************
              url http://packages.vyos.net/vyos
              username ""
          }
      }
      syslog {
          global {
              facility all {
                  level notice
              }
              facility protocols {
                  level debug
              }
          }
      }
      time-zone UTC
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/mTnJB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mTnJB.jpg" alt="enter image description here"></a></p>