I’m frustrated and cannot figure this out – I spent a lot of time, maybe you can help me out:
I’ve got 4 network interfaces on one VyOS Router in VirtualBox:
eth0, 172.16.0.1/24
eth1, 10.0.0.1/24
eth2, 192.168.10.1/24
eth3, [see comments, 192.168.1.82/24, ‘outside’]
All my VM’s can ping each of the interfaces, but I can’t figure out how to route to the internet.
eth3 is supposed to be my “OUTSIDE” connection. I have tried using VirtualBox’s NAT, Nat Service and Bridge mode. Right now, I’m using Bridge mode, which goes direct to my home router… I’m using a static IP on eth3.
In my previous Cisco classes, they said you had to add a Default Route to get traffic to the internet…
I tried:
set protocols static route 0.0.0.0/0 next-hop 192.168.1.82 distance ‘1’
(because that’s eth3’s actual IP address).
However, the router itself doesn’t know how to get out. If I ping google or 4.2.2.1, it says destination host unreachable.
Is there a better way? What’s wrong with my default route?
Why did this work in Cisco class, but not here?
===UPDATE===
So, I changed the ip of eth3 to 192.168.1.1. That seemed to help, because now I can ping IPs, but I’m not getting any DNS resolution. Am I going to have to configure NAT on eth3 or something??