Hi,
I just got an edgerouter last week and am having trouble setting up the interface for eth1 correctly after hours of combing through posts, guides, etc.
Essentially I am trying to have Switch0 (eth2-4) be one LAN, eth1 be another LAN and have both share the same WAN input (eth0). I used the WAN+2LAN2 wizard when i setup the box because it looked like what I was trying to do. The switch0 ports all work to connect to the WAN interface, but eth1 does not connect to the internet. **Config Below**
The idea was to do a few things with eth1; in our new house, the T-mobile cell coverage is atrocious so we wanted to get an LTE cellspot. My goal here is to:
- Completely isolate the cellspot from the rest of the network inside the house
- Somehow speed limit it to about 15/3 mbps (which is why I tried setting up the smart queue but I have no idea if that is right)
As an aside I noticed that on the dashboard, the only interfaces that are showing any traffic are the eth0 (WAN) and switch0 even though I have all 3 eth2-4 plugged in (eth2-4 show as 0 traffic). Is this normal?
Also if anyone has any tips or can point me to a good Firewall guide, that would be much appreciated.
Thanks in advance!
firewall {
all-ping enable
broadcast-ping disable
ipv6-receive-redirects disable
ipv6-src-route disable
ip-src-route disable
log-martians enable
name WAN_IN {
default-action drop
description "WAN to internal"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
name WAN_LOCAL {
default-action drop
description "WAN to router"
rule 10 {
action accept
description "Allow established/related"
state {
established enable
related enable
}
}
rule 20 {
action drop
description "Drop invalid state"
state {
invalid enable
}
}
}
receive-redirects disable
send-redirects enable
source-validation disable
syn-cookies enable
}
interfaces {
ethernet eth0 {
address dhcp
description Internet
duplex auto
firewall {
in {
name WAN_IN
}
local {
name WAN_LOCAL
}
}
poe {
output off
}
speed auto
}
ethernet eth1 {
address 192.168.3.1/24
description Local
duplex auto
poe {
output off
}
speed auto
}
ethernet eth2 {
description "Local 2"
duplex auto
poe {
output off
}
speed auto
}
ethernet eth3 {
description "Local 2"
duplex auto
poe {
output off
}
speed auto
}
ethernet eth4 {
description "Local 2"
duplex auto
poe {
output 48v
}
speed auto
}
loopback lo {
}
switch switch0 {
address 192.168.2.1/24
description "Local 2"
mtu 1500
switch-port {
interface eth2 {
}
interface eth3 {
}
interface eth4 {
}
vlan-aware disable
}
}
}
service {
dhcp-server {
disabled false
hostfile-update disable
shared-network-name LAN1 {
authoritative enable
subnet 192.168.3.0/24 {
default-router 192.168.3.1
dns-server 192.168.3.1
lease 86400
start 192.168.3.38 {
stop 192.168.3.243
}
}
}
shared-network-name LAN2 {
authoritative enable
subnet 192.168.2.0/24 {
default-router 192.168.2.1
dns-server 8.8.8.8
dns-server 75.75.76.76
lease 86400
start 192.168.2.100 {
stop 192.168.2.254
}
}
}
}
dns {
forwarding {
cache-size 150
listen-on switch0
listen-on eth0
}
}
gui {
http-port 80
https-port 443
older-ciphers enable
}
nat {
rule 5010 {
description "masquerade for WAN"
outbound-interface eth0
type masquerade
}
}
ssh {
port 22
protocol-version v2
}
}
system {
host-name ubnt
login {
user xxxxx {
authentication {
encrypted-password xxxxx
}
level admin
}
}
ntp {
server 0.ubnt.pool.ntp.org {
}
server 1.ubnt.pool.ntp.org {
}
server 2.ubnt.pool.ntp.org {
}
server 3.ubnt.pool.ntp.org {
}
}
syslog {
global {
facility all {
level notice
}
facility protocols {
level debug
}
}
}
time-zone UTC
traffic-analysis {
dpi disable
export enable
}
}
traffic-control {
smart-queue CellSpot {
download {
ecn enable
flows 1024
fq-quantum 1514
limit 10240
rate 15mbit
}
upload {
ecn enable
flows 1024
fq-quantum 1514
limit 10240
rate 3mbit
}
wan-interface eth1
}
}
/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.8.5.4884695.160608.1057 */