19:58:30 Hi there! Does anyone know how to configure a static route or add a default gateway in lxc or kvm? Normally in a linux machine I would do that in /etc/network/interfaces.d/ with nano and restart networking service, but the directory's empty 19:59:36 Also tried "ip route add" and "route add default gw" but got errors operation not permitted or unknown error -122 20:05:36 for the default route there's a property nics.*.gateways 20:13:54 dbrooke: I keep getting "Static gateways must be IPv4 addresses" if I try that 20:16:33 are you using host names? 20:19:23 No, just IPv4 and IPv6 adresses 20:34:23 I think it only takes IPv4 20:35:40 You may be able to use the /native route tool to add a route. 20:39:03 I just checked my definitions and I'm only specifying the IPv4 gateway in the JSON - the IPv6 gateway is picked up from the router advertisement (via rdnssd on linux) 20:40:01 Don't you have to set the promiscuous permission on the zone before it can do arbitrary IP address things? 20:40:18 sorry i mean that for the IPv6 DNS advertisement you need rdnssd 20:40:47 i.e. in the nics block, 20:40:47 "allow_dhcp_spoofing": true, 20:40:47 "allow_ip_spoofing": true, 20:40:47 "allow_mac_spoofing": true, 20:40:48 "allow_restricted_traffic": true, 20:40:54 one or more of those 20:41:19 allow_ip_spoofing is only necessary for kvm/bhyve, not for native zones 20:41:22 (for addrconf) 21:22:42 The global zone picked up the IPv6 gateway from router advertisements as well. I have made several virtual lx/kvm instances with static IPv6-addresses(allowed ip spoofing of course), but I cannot use them without a static IPv6 gateway and it does not get assigned automatically by the global zone like native zones 21:24:08 Can not assign IPv6 gateway or configure a default route manually in the lxc or kvm instance either 21:25:01 TheTim0Nat0r: does your kvm guest use privacy extensions? 21:25:20 I'm using SLAAC exclusively 21:25:37 and with the exception of the ip spoofing bug for kvm/bhyve, that works reliable 21:31:45 nbjoerg: Just ip spoofing, nothing else. I am using SLAAC as well and that works like a charm. But I can not contact anything through IPV6 with a static non-EUI64 IPv6 address(so without SLAAC), because there's no static IPv6 gateway assigned. 21:36:19 SmartOS does not provide functionality to provide a static IPv6-gateway(There's an old ticket ) and it seems like the virtual instances also do not allow us to modify this with ip or route or in /etc/network/interfaces.d in case of linux 21:41:57 my debian bhyve HVMs with static IPs and a static IPv4 gw do pick up the IPv6 gw from router advertisement so I'm not sure why that's not happening for you 21:48:02 dbrooke: Okay, so if I understood well : your debian has both static IPv4 and static non-EUI64 IPv6(without SLAAC) and picked up the IPv6 gateway on its own? 21:53:48 here's one my (anonymised) nics definitions https://stuff.dbrooke.me.uk/sp-B3Sif2.zzz 21:54:39 and it has default via fe80::db:f4ff:febd:fd00 dev net0 proto ra metric 1024 expires 1760sec pref medium 22:04:38 Hmm, I see. Will continue my troubleshooting journey in that case. 22:13:56 for completeness, that's bhyve and "image_uuid": "6ae6054a-95f7-4f8e-a3f7-88d1d22301bf" and I'm not aware of configuring or installing anything in order to make the gw assignment work