diff --git a/lower/tun_windows.go b/lower/tun_windows.go index e676195..bdbb625 100644 --- a/lower/tun_windows.go +++ b/lower/tun_windows.go @@ -11,7 +11,8 @@ func (n *NIC) Up() { if err != nil { panic(err) } - execute("cmd", "/c", "netsh interface ip set address name=\""+n.ifce.Name()+"\" source=static addr=\""+n.ip+"\" mask=\""+(net.IP)(ipn.Mask).String()+"\" gateway=none mtu="+n.mtu) + execute("cmd", "/c", "netsh interface ip set address name=\""+n.ifce.Name()+"\" source=static addr=\""+n.ip+"\" mask=\""+(net.IP)(ipn.Mask).String()+"\" gateway=none") + execute("cmd", "/c", "netsh interface ipv4 set subinterface \""+n.ifce.Name()+"\" mtu="+n.mtu) for _, c := range n.cidrs { ip, cidr, err := net.ParseCIDR(c) if err != nil {