I have the following abridged configuration for a Ubiquiti switch:
interfaces {
ethernet eth1 {
address 192.168.4.1/24
vif 101 {
address 10.10.254.1/24
}
vif 103 {
address 10.1.1.1/24
}
}
}
protocols {
static {
route 10.1.1.0/24 {
next-hop 192.168.4.254 {
}
}
route 10.10.254.0/24 {
next-hop 192.168.4.254 {
}
}
}
}
where 192.168.4.254 is the Gateway and the vifs share the exact same firewall configuration with eth1.
Devices on eth1's network can see devices on vif101 when they are configured to talk to the gateway for the vifs subnets through the following route entries:
10.1.1/24 192.168.4.254 UGSc 1 2 en5
10.10.254/24 192.168.4.254 UGSc 0 0 en5
However, the switch cannot reach devices on either vif and devices on the vifs cannot reach the Internet despite being able to reach the gateway and devices on eth1 even with the static routing. Devices on eth1 are able to communicate with the Internet.
The routing table on the switch is:
S>* 0.0.0.0/0 [1/0] via --redacted--, eth0
S 10.1.1.0/24 [1/0] via 192.168.4.254
C>* 10.1.1.0/24 is directly connected, eth1.103
S 10.10.254.0/24 [1/0] via 192.168.4.254
C>* 10.10.254.0/24 is directly connected, eth1.101
C>* --redacted-- is directly connected, eth0
C>* 127.0.0.0/8 is directly connected, lo
C>* 192.168.4.0/24 is directly connected, eth1
The routing table on one of the devices on vif101 is:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 10.1.1.1 UG 4 1954 net0
10.0.1.0 10.0.1.38 U 4 958 net1
10.1.1.0 10.1.1.7 U 3 1 net0
127.0.0.1 127.0.0.1 UH 2 0 lo0
I don't have networking knowledge so I'm not sure if there's something obvious I'm missing. How do I get the vifs to communicate with the Internet?
system
section further down in the file containinggateway-address
with a setting of 72.143.127.169. Nothing has 192.168.4.254 set as the default gateway though maybe that's worth trying.