-
Guest34hi guys, i'm in a strange situation, one of my internet providers' default gateway is only reachable using an intermediate router
-
Guest34actually i reach that router using a static route but i'm unable to add that router as a default gateway
-
Guest34i'm wondering if it is possible to add a default gateway via a no directly connected router
-
Guest34i'm using a native zone as my router
-
Guest34i'm sorry for my absolutely horrible english
-
tsoome__it may be helpful if you can write down the connectivity you have and route maps. The router (for default or specific routes) is system in your subnet, that is, you have to have direct connection to router. If you are using subnets in your private network (that is, network which is not directly routable to outside world), then you need to translate those subnets to usable network addresses first.
-
Guest34hi again, i tried to show the network here
-
Guest34
-
Guest34
-
Guest34i think i'm unable to add a default gateway when it's not in the same broadcast segment
-
tsoome__yes. for your smartos only router1 can be the gateway, and if your smartos needs to reach outside world, your router1 needs to use NAT to translate 149.62.183 network to 10.181.18.
-
tsoome__unless your router2 knows how to handle 149.62.183 network of course;)
-
Guest34yes, router2 has in its routing table a entry for 149.62.183 network, in fact the comunication is possible without using NAT, my problem is i need to add router2 as default gateway
-
Guest34i'm reading it is possible to do it with iproute2 in linux, i'm going to trying with a bhyve vm
-
danmcdMake sure NIC protections are set appropriately. SmartOS by default is super picky about what is/isn't allowed on a NIC.
-
danmcdSee the "nics:" subsection of vmadm(8) for appropriate properties.
-
otisesp. ip and mac spoofing
-
danmcdFor a router you don't need mac spoofing unless you're playing proxy-ARP games. IP spoofing, ABSOLUTELY needed for a router.
-
danmcdAlso if your router does DHCP you'll need that set too.
-
neiracGuest34 this could help blog.daveeddy.com/2015/05/31/smartos-as-a-home-router