hello
i am am struggling with vlans in vyos the native lan 192.168.5.1 is fine but the vlan 20 has no internet i have 1.33 version
i have 1 wan,1 lan and vlan on the same port as lan
one interface where you use both directly the interface (without VLAN) and a VLAN on the same interface.
all-ping enable
broadcast-ping disable
config-trap disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name OUTSIDE-IN {
default-action drop
rule 10 {
action accept
state {
established enable
related enable
}
}
}
name OUTSIDE-LOCAL {
default-action drop
rule 10 {
action accept
state {
established enable
related enable
}
}
rule 20 {
action accept
icmp {
type-name echo-request
}
protocol icmp
state {
new enable
}
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
twa-hazards-protection disable
}
interfaces {
ethernet eth0 {
address dhcp
description OUTSIDE
duplex auto
firewall {
in {
name OUTSIDE-IN
}
local {
name OUTSIDE-LOCAL
}
}
hw-id 00:e2:69:52:85:be
offload {
gro
}
speed auto
}
ethernet eth1 {
address 192.168.5.1/24
description INSIDE
duplex auto
hw-id 00:e2:69:52:85:bf
offload {
gro
}
speed auto
vif 20 {
address 10.255.20.1/24
description "VLAN 20"
}
}
ethernet eth2 {
hw-id 00:e2:69:52:85:c0
offload {
gro
}
}
ethernet eth3 {
hw-id 00:e2:69:52:85:c1
offload {
gro
}
}
}
nat {
source {
rule 100 {
outbound-interface eth0
source {
address 192.168.5.0/24
}
translation {
address masquerade
}
}
}
}
service {
dhcp-server {
shared-network-name LAN {
subnet 192.168.5.0/24 {
default-router 192.168.5.1
domain-name vyos.net
lease 86400
name-server 192.168.5.1
range 0 {
start 192.168.5.9
stop 192.168.5.254
}
}
}
shared-network-name VLAN20 {
subnet 10.255.20.0/24 {
default-router 10.255.20.1
name-server 10.255.20.1
range 0 {
start 10.255.20.10
stop 10.255.20.254
}
}
}
}
dns {
forwarding {
allow-from 192.168.5.0/24
cache-size 0
listen-address 192.168.5.1
listen-address 10.255.20.1
}
}
ssh {
port 22
}
}
system {
config-management {
commit-revisions 200
}
conntrack {
modules {
ftp
h323
nfs
pptp
sip
sqlnet
tftp
}
}
name-server eth0
}
// Warning: Do not remove the following line.
// vyos-config-version: "broadcast-relay@1:cluster@1:config-management@1:conntrack@3:conntrack-sync@2:container@1:dhcp-relay@2:dhcp-server@6:dhcpv6-server@1:dns-forwarding@3:firewall@5:https@2:interfaces@22:ipoe-server@1:ipsec@5:isis@1:l2tp@3:lldp@1:mdns@1:nat@5:ntp@1:pppoe-server@5:pptp@2:qos@1:quagga@8:rpki@1:salt@1:snmp@2:ssh@2:sstp@3:system@21:vrrp@2:vyos-accel-ppp@2:wanloadbalance@3:webproxy@2:zone-policy@1"
// Release version: 1.3.3