Vyatta Routing Vmware

10 posts / 0 new
Last post
nmsmaia
Vyatta Routing Vmware

Hi to all,

I’m evaluating Vyatta router has a replacement for a gateway based in a generic linux distribution.

The first goal that I need to accomplish is to simply route 2 private networks to measure the performance of Vyatta in a virtual environment. This seems to be a simple task but I can’t put this working.

I need to route between 2 private networks, from 192.168.10.0/24 to 192.168.50.0/24.

If I make a ssh connection to vyatta, from the router himself I can reach any place in the internet. Ping http://www.google.com in the router it’s ok.

If I connect a Windows Workstation being vyatta the default gateway I can’t reach any place except the internal interface of vyatta. Ping 192.168.10.100 works just fine from the Windows machine but I can’t reach any other place.

I don’t know if I have to activate any other feature in vyatta linux a traditional linux system to make de routing.

I’m using vmware workstation for vyatta and for the window box.

This is my current setup.

interfaces { 
      ethernet eth0 { 
          address 192.168.50.10/24 
          description Internet 
          duplex auto 
          hw-id 00:0c:29:68:61:9a 
          smp_affinity auto 
          speed auto 
      } 
      ethernet eth1 { 
          address 192.168.10.100/24 
          description LAN 
          duplex auto 
          hw-id 00:0c:29:68:61:a4 
          smp_affinity auto 
          speed auto 
      } 
      loopback lo { 
      } 
  } 
  protocols { 
      static { 
          route 0.0.0.0/0 { 
              next-hop 192.168.50.1 { 
              } 
          } 
      } 
  } 
  service { 
      https 
      ssh { 
          port 22 
          protocol-version v2 
      } 
  } 
  system { 
      host-name vyatta 
      login { 
          user vyatta { 
              authentication { 
                  encrypted-password $1$bw8MwV0X$RyT0RHHtN1Qc1G1aSpFHc. 
              } 
              level admin 
          } 
      } 
      name-server 212.113.164.5 
      name-server 212.113.164.6 
      ntp-server 0.vyatta.pool.ntp.org 
      package { 
          auto-sync 1 
          repository community { 
              components main 
              distribution stable 
              password "" 
              url http://packages.vyatta.com/vyatta 
              username "" 
          } 
      } 
      syslog { 
          global { 
              facility all { 
                  level debug 
              } 
              facility protocols { 
                  level debug 
              } 
          } 
      } 
      time-zone GMT 
  } 

Please, could you help me?

Thanks

NginUS
Vyatta Routing Vmware

It appears you don't have any NAT functions configured.

See Vyatta_NATRef_R6.1_v02.pdf in the docs, it should get you started in the right direction.
On Thu, 25 Nov 2010 02:30 -0800, "nmsmaia" wrote:

Quote:
Hi to all,

I’m evaluating Vyatta router has a replacement for a gateway based in a generic linux distribution.

The first goal that I need to accomplish is to simply route 2 private networks to measure the performance of Vyatta in a virtual environment. This seems to be a simple task but I can’t put this working.

I need to route between 2 private networks, from 192.168.10.0/24 to 192.168.50.0/24.

If I make a ssh connection to vyatta, from the router himself I can reach any place in the internet. Ping www.google.com in the router it’s ok.

If I connect a Windows Workstation being vyatta the default gateway I can’t reach any place except the internal interface of vyatta. Ping 192.168.10.100 works just fine from the Windows machine but I can’t reach any other place.

I don’t know if I have to activate any other feature in vyatta linux a traditional linux system to make de routing.

I’m using vmware workstation for vyatta and for the window box.

This is my current setup.

Code:
interfaces {
ethernet eth0 {
address 192.168.50.10/24
description Internet
duplex auto
hw-id 00:0c:29:68:61:9a
smp_affinity auto
speed auto
}
ethernet eth1 {
address 192.168.10.100/24
description LAN
duplex auto
hw-id 00:0c:29:68:61:a4
smp_affinity auto
speed auto
}
loopback lo {
}
}
protocols {
static {
route 0.0.0.0/0 {
next-hop 192.168.50.1 {
}
}
}
}
service {
https
ssh {
port 22
protocol-version v2
}
}
system {
host-name vyatta
login {
user vyatta {
authentication {
encrypted-password $1$bw8MwV0X$RyT0RHHtN1Qc1G1aSpFHc.
}
level admin
}
}
name-server 212.113.164.5
name-server 212.113.164.6
ntp-server 0.vyatta.pool.ntp.org
package {
auto-sync 1
repository community {
components main
distribution stable
password ""
url http://packages.vyatta.com/vyatta
username ""
}
}
syslog {
global {
facility all {
level debug
}
facility protocols {
level debug
}
}
}
time-zone GMT
}

Please, could you help me?

Thanks

nmsmaia
Vyatta Routing Vmware

Thanks,

I don’t want to use the NAT functionality, I only want to route between those 2 private networks. Traffic don’t follow between these networks in vyatta.

NginUS
Vyatta Routing Vmware

Sorry, misunderstood.
On Thu, 25 Nov 2010 02:58 -0800, "nmsmaia" wrote:

Quote:
Thanks,

I don’t want to use the NAT functionality, I only want to route between those 2 private networks. Traffic don’t follow between these networks in vyatta.

vaiojunkie
Vyatta Routing Vmware

Hello

Can you ping the WAN interface (192.168.50.10) of Vyatta from your desktop ?

Does the gateway box (192.168.50.1) have a route back to 192.168.10.0/24 ?

nmsmaia
Vyatta Routing Vmware

vaiojunkie wrote:
Hello

Can you ping the WAN interface (192.168.50.10) of Vyatta from your desktop ?

Does the gateway box (192.168.50.1) have a route back to 192.168.10.0/24 ?

Hi,

The answer is No to both questions.

vaiojunkie
Vyatta Routing Vmware

Ok.

Your main internet gateway will need to know how to reach the 192.168.10.0/24. Add a static route on it to point 192.168.10.0/24 via 192.168.50.10.

On the Vyatta box can you show us the output of

show ip route

teflon_gecko
Re: Vyatta Routing Vmware

nmsmaia wrote:
The first goal that I need to accomplish is to simply route 2 private networks to measure the performance of Vyatta in a virtual environment. This seems to be a simple task but I can’t put this working.

I need to route between 2 private networks, from 192.168.10.0/24 to 192.168.50.0/24.

Vyatta runs in a virtual machine and you want to route between 2 physical networks? What vmware product are you using?

If you use vmware player or server then the problem is that your vyatta network interfaces are virtual interfaces. If you select NAT or private networks for them in vmware they won't work for routing.
If you bridge them to a physical interface your vmware would answer (R)ARP requests for them, but it still won't work :D The explanation is easy - your host receives packets with a destination IP that it can't route (in case just the virtual vyatta machine knows how to route them).

I think you'd be able to make this work with vmware esxi.

mrjester
Vyatta Routing Vmware

VMWare workstation doesn't play well with routing. The best solution I found was to create a router (Vyatta) bridged on one side and to an unused vmnet on the other. Then build my network behind all of that. This takes VMWare as a router/nat/hop out of the equation.

You will still need the static route on your actual gateway if you aren't going to use NAT inside at all.

nmsmaia
Vyatta Routing Vmware

Thanks to all of you, it's solved.

it was missing a route back to 192.168.10.0/24 and there was a wrong configuration in windows box.

Thanks