How to configure VYOS router to connect to my ISP


#1

HI,

I currently am connecting to my ISP using a Linksys router behind a cable modem. My public IP is provide by DHCP.

My question: If I wanted to remove the Linksys router and connect my VYOS router box, how would I configure the WAN interface so that my devices on the LAN side that are NAT’ed can route to the internet?

Here is my setup so far: I left the gateway out since I do not know what to enter for this?

run sh configuration
interfaces {
ethernet eth0 {
address dhcp
description Internet
duplex auto
hw-id 00:23:18:f7:3a:88
smp_affinity auto
speed auto
}
ethernet eth2 {
address 192.168.3.1/24
description LAN
duplex auto
hw-id 3c:18:a0:06:e0:34
smp_affinity auto
speed auto
}
loopback lo {
}
wireless wlan0 {
hw-id 00:26:b6:eb:98:3c
mode g
physical-device phy0
type monitor
}
}
nat {
source {
rule 10 {
outbound-interface eth0
source {
address 192.168.3.0/24
}
translation {
address masquerade
}
}
}
}
service {
dhcp-server {
disabled false
shared-network-name pool {
authoritative disable
subnet 192.168.3.0/24 {
default-router 192.168.3.1
dns-server 8.8.8.8
lease 86400
start 192.168.3.50 {
stop 192.168.3.200
}
}
}
}
dns {
forwarding {
listen-on eth2
name-server 8.8.8.8
system
}
}
ssh {
:
Thanks


#2

Depending on your ISP you also may need to setup VLAN and/or MAC address of your isp router
but otherwise looks fine