Hello y'all, sorry but here's another vlan post.
So I set up VyOS router as an VM. Eth0 is the WAN. and eth1 is LAN, with eth1.20 as vlan 20. It all works when I used tags on other VM. So I don't think anything wrong with my Vyos side. The issue I'm having is on my switch, which is ICX-6450-24P. Config below.
Port 1/1/13 is connected to WAN
Port 1/1/14 is VyOS WAN port(eth0)
Port 1/1/1 is VyOS LAN port(eth1 and eth1.20)
VLAN 10: 1/1/1(dual-mode) & 1/1/2(dual-mode)
VLAN 20: 1/1/1 & 1/1/3
VLAN 100: 1/1/13 & 1/1/14
When I plug my computer into 1/1/2(vlan10), it works, it can grab the DHCP server(IP:10.0.10.1). It works, I can browse the internet. So the problem I'm having is when I plug my computer to 1/1/3(vlan20), it does not work. I want it to grab vyos DHCP server(IP:10.0.20.1). What am I doing wrong? I tried setting 1/1/3 tagged, untagged, and dual-mode but those do not seem to work.
6450 configs
So I set up VyOS router as an VM. Eth0 is the WAN. and eth1 is LAN, with eth1.20 as vlan 20. It all works when I used tags on other VM. So I don't think anything wrong with my Vyos side. The issue I'm having is on my switch, which is ICX-6450-24P. Config below.
Port 1/1/13 is connected to WAN
Port 1/1/14 is VyOS WAN port(eth0)
Port 1/1/1 is VyOS LAN port(eth1 and eth1.20)
VLAN 10: 1/1/1(dual-mode) & 1/1/2(dual-mode)
VLAN 20: 1/1/1 & 1/1/3
VLAN 100: 1/1/13 & 1/1/14
When I plug my computer into 1/1/2(vlan10), it works, it can grab the DHCP server(IP:10.0.10.1). It works, I can browse the internet. So the problem I'm having is when I plug my computer to 1/1/3(vlan20), it does not work. I want it to grab vyos DHCP server(IP:10.0.20.1). What am I doing wrong? I tried setting 1/1/3 tagged, untagged, and dual-mode but those do not seem to work.
6450 configs
VyOS configStartup-config data location is flash memory
!
Startup configuration:
!
ver 08.0.30uT313
!
stack unit 1
module 1 icx6450-24p-poe-port-management-module
module 2 icx6450-sfp-plus-4port-40g-module
stack disable
!
global-stp
!
!
!
vlan 10 name Internal by port
tagged ethe 1/1/1 to 1/1/2
spanning-tree 802-1w
!
vlan 20 name Main by port
tagged ethe 1/1/1 ethe 1/1/3
spanning-tree 802-1w
!
vlan 100 name WAN by port
untagged ethe 1/1/13 to 1/1/14
router-interface ve 100
spanning-tree 802-1w
!
vlan 1095 by port
!
vlan 4095 name DEFAULT-VLAN by port
router-interface ve 1
spanning-tree 802-1w
!
!
!
!
!
aaa authentication web-server default local
aaa authentication login default local
default-vlan-id 4095
enable acl-per-port-per-vlan
hostname ICX6450-24p-01
ip dhcp-client disable
!
no telnet server
username root password .....
!
!
web-management https
web-management frame bottom
web-management page-menu
web-management session-timeout 3600
!
!
router rip
!
!
!
interface ethernet 1/1/1
dual-mode 10
!
interface ethernet 1/1/2
dual-mode 10
!
interface ve 1
ip address 10.0.0.150 255.255.255.0
!
interface ve 100
!
!
!
!
!
!
!
!
!
end
vyos@vyos:~$ show config
firewall {
name LAN-LOCAL {
default-action accept
description "LAN outbound to LOCAL(this device)"
}
name LAN-WAN {
default-action accept
description "LAN outbound to WAN"
}
name LOCAL-LAN {
default-action accept
description "LOCAL(this device) outbound to LAN "
}
name LOCAL-WAN {
default-action accept
description "LOCAL(this device) outbound to WAN "
}
name WAN-LAN {
default-action drop
description "WAN inbound to LAN"
rule 5 {
action accept
description "Allow EST/Related Traffic"
state {
established enable
related enable
}
}
rule 20 {
action accept
protocol icmp
state {
new enable
}
}
}
name WAN-LOCAL {
default-action drop
description "WAN inbound to LOCAL(this device)"
rule 5 {
action accept
description "Allow EST/Related Traffic"
state {
established enable
related enable
}
}
rule 20 {
action accept
protocol icmp
state {
new enable
}
}
}
zone LAN {
default-action drop
from LOCAL {
firewall {
name LOCAL-WAN
}
}
from WAN {
firewall {
name WAN-LAN
}
}
interface eth1
interface eth1.20
}
zone LOCAL {
default-action drop
from LAN {
firewall {
name LAN-LOCAL
}
}
from WAN {
firewall {
name WAN-LOCAL
}
}
local-zone
}
zone WAN {
default-action drop
from LAN {
firewall {
name LAN-WAN
}
}
from LOCAL {
firewall {
name LOCAL-WAN
}
}
interface eth0
}
}
interfaces {
ethernet eth0 {
address dhcp
description WAN(internet)
}
ethernet eth1 {
address 10.0.10.1/24
description "LAN 1"
vif 20 {
address 10.0.20.1/24
description "VLAN20 Main"
}
loopback lo {
}
}
nat {
source {
rule 100 {
outbound-interface eth0
source {
address 10.0.0.0/16
}
translation {
address masquerade
}
}
}
}
service {
dhcp-server {
shared-network-name LAN1 {
subnet 10.0.10.0/24 {
default-router 10.0.10.1
name-server 10.0.10.1
range 0 {
start 10.0.10.100
stop 10.0.10.200
}
}
}
shared-network-name VLAN20 {
subnet 10.0.20.0/24 {
default-router 10.0.20.1
name-server 10.0.20.1
range 0 {
start 10.0.20.100
stop 10.0.20.200
}
}
}
}
dns {
forwarding {
allow-from 10.0.0.0/16
cache-size 0
listen-address 10.0.10.1
listen-address 10.0.20.1
name-server 10.0.1.11
}
}
ntp {
allow-client {
address 0.0.0.0/0
address ::/0
}
server time1.google.com {
}
server time2.google.com {
}
server time3.google.com {
}
}
ssh {
port 22
}
}
system {
config-management {
commit-revisions 100
}
conntrack {
modules {
ftp
h323
nfs
pptp
sip
sqlnet
tftp
}
}
console {
device ttyS0 {
speed 115200
}
}
host-name vyos
login {
user vyos {
authentication {
encrypted-password ****************
plaintext-password ****************
public-keys ********************* {
key ****************
options "from="10.0.10.0/24""
type ssh-rsa
}
}
}
}
name-server eth0
syslog {
global {
facility all {
level info
}
facility protocols {
level debug
}
}
}
}